Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
CDNs fail, but your scripts don't have to - fallback from CDN to local jQuery
<script src=""></script>
if (typeof jQuery == 'undefined') {
document.write(unescape("%3Cscript src='/js/jquery-2.0.0.min.js' type='text/javascript'%3E%3C/script%3E"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment