Use Google CDN jQuery but fallback to local copy
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
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script>!window.jQuery
&& document.write('<script src="js/jquery-1.4.2.min.js"><\/script>')</script>
URL: http://html5boilerplate.com/
Report this snippet
Comments
Subscribe to comments