Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

The availability of features may depend on your plan type. Contact your Customer Success Manager if you have any questions.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Content Delivery Networks

How to use content delivery networks (CDN) with Optimizely Web Experimentation and Optimizely Personalization

Optimizely Web Experimentation and Optimizely Personalization use a content delivery network (CDN), a network of web servers located worldwide, to provide service for rendering the snippet.

See the following articles for information:

Self-host the Optimizely snippet

Place the JavaScript snippet in the head tag of your website to get Optimizely Web Experimentation or Optimizely Personalization working. This synchronously loads the Optimizely software and your tests. See Get started with Optimizely Web Experimentation or Get started with Optimizely Personalization.

Benefits of self-hosting

Self-hosting is ideal for customers who are using both HTTP/2 to serve their website and a CDN. By self-hosting, you can eliminate an SSL connection to Optimizely Web Experimentation while using multiplexing to request the snippet faster.

While self-hosting with an HTTP/1 connection may eliminate an additional DNS lookup and the SSL handshake, there is no guarantee the script will download earlier than if it was downloaded directly from Optimizely.

If you have your own internal security policies that make loading a third-party JavaScript tag difficult, self-hosting may work better for you.

Self-hosting with CDNs

If you use a CDN to serve your websites, you may be able to use your configuration to deliver the Optimizely snippet to your site.

There are different configurations if you are using a standard or custom snippet, so check your project first before you get started.