Skip to content

Instantly share code, notes, and snippets.

@FractalizeR
Created December 29, 2014 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FractalizeR/5e7f71a01d9078217249 to your computer and use it in GitHub Desktop.
Save FractalizeR/5e7f71a01d9078217249 to your computer and use it in GitHub Desktop.
Load jQuery from CDN, if fails - locallly
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
if (typeof jQuery == 'undefined')
{
document.write(unescape("%3Cscript src='Scripts/jquery.1.9.1.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