2012-01-19, 22:32:29
I think the following code taken from http://html5boilerplate.com/ should be used which offers a local copy in case CDN is not available:
It is likely the user will have visited a site that has cached the CDN version so this will save another download for admin.
Code:
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.1.min.js"><\/script>')</script>
It is likely the user will have visited a site that has cached the CDN version so this will save another download for admin.