Posted By

lajlev on 10/01/10


Tagged

google jquery api


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jplr


jQuery loading fallback


 / Published in: HTML
 

URL: http://www.1stwebdesigner.com/development/snippets-html5-boilerplate/

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

Report this snippet  

You need to login to post a comment.