Skip to content

Instantly share code, notes, and snippets.

@nfrade
Last active December 10, 2015 07:48
Show Gist options
  • Save nfrade/4403089 to your computer and use it in GitHub Desktop.
Save nfrade/4403089 to your computer and use it in GitHub Desktop.
HTML: Insert jQuery Google CDN with local fallback
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
document.write(unescape("%3Cscript src='/js/jquery-1.8.3.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment