Posted By

f6design on 10/01/10


Tagged

javascript html google jquery


Versions (?)

Who likes this?

9 people have marked this snippet as a favorite

DaveMellett
jplr
kuchenfari
romainsauger
baczoni
jpdesigndev
o5kar
aharl
timsommer


Use Google CDN jQuery but fallback to local copy


 / Published in: HTML
 

URL: http://html5boilerplate.com/

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

  1. <!-- Grab Google CDN's jQuery. fall back to local if necessary -->
  2. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  3. <script>!window.jQuery && document.write('<script src="js/jquery-1.4.2.min.js"><\/script>')</script>

Report this snippet  

You need to login to post a comment.