Posted By

Huskie on 01/12/12


javascript html google content jquery network loading fallback html5 Delivery CDN

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Google CDN jQuery loading fallback

 / Published in: jQuery


This code snippet fetches the very latest minified version of jQuery from Google's CDN. If this is not available, we revert to a locally stored version (current version at time of publish was 1.7.1 - update this to suit going forward).

  1. <script src=""></script>
  2. <script>!window.jQuery && document.write('<script src="js/jquery-1.7.1.min.js"><\/script>')</script>

Report this snippet  

You need to login to post a comment.