jQuery loading fallback

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

Copy this code and paste it in your HTML
  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>

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

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.