Usually we check if jQuery is loaded from the CDN or not, and drops to the local version if it is not.
<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>
I am using twitter bootstrap and it loads the html 5-way gasket from the copy googlecode.
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
Is it possible to somehow return to the local version if it does not boot from googlecode
Or am I doing something wrong. Should I check this out?
source
share