-
-
Save masiorama/5126058 to your computer and use it in GitHub Desktop.
HTML: load js from CDN with local fallback
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="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script>window.jQuery || document.write("<script src='js/libs/jquery-1.7.2.min.js'>\x3C/script>")</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment