Use Google CDN jQuery but fallback to local copy

/ Published in: HTML
Save to your folder(s)

Grab Google CDN's jQuery. Fall back to local if necessary, Taken from the HTML5 Boilerplate.

Copy this code and paste it in your HTML
  1. <!-- Grab Google CDN's jQuery. fall back to local if necessary -->
  2. <script src=""></script>
  3. <script>!window.jQuery && document.write('<script src="js/jquery-1.4.2.min.js"><\/script>')</script>


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.