Created
April 3, 2015 22:10
-
-
Save kirandasika/90e7548b5287370b4835 to your computer and use it in GitHub Desktop.
A quick way to fallback to local jQuery library if Google CDN is not available
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.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