Created
May 1, 2013 13:41
-
-
Save alexdmejias/5495337 to your computer and use it in GitHub Desktop.
script fallback incase cdn fails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="[url goes here]/jquery-2.0.0.min.js"></script> | |
<script> | |
if (typeof jQuery == 'undefined') { | |
document.write(unescape("%3Cscript src='/js/jquery-2.0.0.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