Rich-text Reply

Should I put the same snippet javascript file on my own server?

xiaomu 07-03-14

Should I put the same snippet javascript file on my own server?

For example, a snippet file is http://cdn.optimizely.com/js/xyz.js

Should I download the xyz.js file, and then put the file on my own web server for web page to load, instead of the remote file in cdn?

Level 1

adzeds 07-03-14
 

Re: Should I put the same snippet javascript file on my own server?

Nope.

You will find that you constantly have to keep updating the file on your CDN every time you make a change.

There is no real performance issue with loading the snippet from the Optimizely CDN.
David Shaw
Level 11
Kathryn 07-23-14
 

Re: Should I put the same snippet javascript file on my own server?

Hi Xiaomu,

David has nailed it.

In general there is no real benefit to self-hosting our snippet and additionally you would need to download the snippet from Optimizely and update the self-hosted snippet file every time you change the settings for your project or make changes to an experiment.

If you've any concerns about snippet performance, feel free to let us know so we can put your mind at ease!

-Kathryn
Optimizely