jQuery loading fallback
Copy this code and paste it in your HTML
<span><!-- Grab Google CDN's jQuery. fall back to local if necessary --> <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> <script>!window.jQuery
&& document.write('<script src="js/jquery-1.4.2.min.js"></script>')</script> </span>
URL: http://www.1stwebdesigner.com/development/snippets-html5-boilerplate/
Report this snippet
Comments
Subscribe to comments