Table of Contents
- Quickly find information in the Knowledge Base on CDNs and self-hosting the Optimizely snippet
Optimizely uses a Content Delivery Network (CDN), a network of web servers located around the world, to provide service for rendering the snippet. This page is intended to act as a hub for our Knowledge Base articles on CDNs and related topics, like self-hosting the snippet.
Content Delivery Networks
Self-hosting the Optimizely snippet
The easiest way to get Optimizely working out of the box is by placing our code snippet in the head tag of your websites, which synchronously loads the Optimizely software and the tests you are running.
Benefits of self-hosting
Self-hosting the Optimizely snippet can deliver a number of potential security and performance benefits. If you're using a CDN and HTTP/2 to serve your website, you'll be able to use multiplexing to request the snippet faster.
An additional DNS lookup, a new HTTP connection, and an SSL handshake with the Optimizely server normally are required during the initial load of the page.
Self-hosting with CDNs
If you're using a CDN to serve your websites, you may be able to use your CDN configuration to also deliver the Optimizely snippet to your site.
There are slightly different configurations based on if you are using a standard or custom snippet, so check your project first before you get started.