jQuery CDN Link Problems with IE 9

CDN Link Problem with IE 9If you are using the Google or Microsoft CDN link to load jQuery you may run into problems with Internet Explorer 9 users. IE 9 includes a new feature called Tracking Protection which is designed to prevent sites from tracking you without your consent. An unfortunate side affect is that the default protection also blocks CDN links from popular CDN sources such as Google and even Microsoft.

A Simple Solution
The quick fix for this is to use a version that is CDN compatible with IE9. We recently tested jQuery 1.6.2 and it works fine with IE9. Earlier versions may also work but you’ll need to test each one.

Here’s one method for using the Google jQuery CDN:

<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js”></script>

What is a CDN link and Why Use One?
CDN stands for Content Delivery Network. By using a CDN you are reducing the demands on your server by offloading the storage and retrieval of certain resources to a 3rd party server. The CDN will also help your pages load faster by allowing the browser to download content more quickly.

Unfortunately, if there is a problem with the CDN server the resource(s) may fail to load and thereby disable any features on your that are dependent on that resource. While Google and Microsoft provide reliable CDN systems there is always a possibility of a failure so you should consider that when deciding whether to use one or not.

DLL Written by: Don Lyckman
Don Lyckman is a Web Developer/Designer
Javascript, jQuery

If you enjoyed this post, please consider leaving a comment or subscribe to the feed and get future articles delivered to your feed reader.

Leave Comment