I use HTML5 boilerplate and jQuery is declared twice in the HTML page like this:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.6.2.min.js"><\/script>')</script>
What’s the reason behind including the JavaScript files this way?
It seems to be the only reason is to load jQuery library from local server if it’s not reachable from Google CDN.
They reason html5 Boilerplate includes the script that way is because it attempts to “load jQuery library from local server if it’s not reachable from Google CDN.” =)