score:2

Accepted answer

it seems many proxy servers admins don't allow compressed javascript modules:

http://www.stevesouders.com/blog/2009/11/11/whos-not-getting-gzip/

so it would be nice if the highcharts cdn didn't force compression. until that changes the best i can suggest is try to load from highcharts cdn, fallback to your own server if that fails. perhaps like this;

<script src="//code.highcharts.com/stock/1.2/highstock.js"></script>
<script>!window.highcharts && document.write(unescape('%3cscript src="../js/highstock/highstock.js"%3e%3c/script%3e'))</script>
<script src="//code.highcharts.com/stock/1.2/modules/exporting.js"></script>
<script>!window.highcharts.post && document.write(unescape('%3cscript src="../js/highstock/modules/exporting.js"%3e%3c/script%3e'))</script>

score:0

for the highcharts library this problem can be solved by using a different cdn such as:

//cdnjs.cloudflare.com/ajax/libs/highcharts/2.3.5/highcharts.js

unfortunately, the highstock library isn't held on cdnjs, or any other cdn that supports uncompressed download (as of apr 2013).


Related Query

More Query from same tag