Created
August 15, 2011 16:56
-
-
Save Fogh/1147189 to your computer and use it in GitHub Desktop.
Get jQuery from Google API, and if unavailable get local version instead.
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.1/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.1.min.js"><\/script>')</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remember to edit the URL for local jQuery file.