Skip to content

Instantly share code, notes, and snippets.

@kirandasika
Created April 3, 2015 22:10
Show Gist options
  • Save kirandasika/90e7548b5287370b4835 to your computer and use it in GitHub Desktop.
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
<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