Skip to content

Instantly share code, notes, and snippets.

@ZweiSteinSoft
Created January 25, 2012 17:20
Show Gist options
  • Save ZweiSteinSoft/1677407 to your computer and use it in GitHub Desktop.
Save ZweiSteinSoft/1677407 to your computer and use it in GitHub Desktop.
JS: Load jQuery from CDN, or from local file if CDN is down
<script src="//code.jquery.com/jquery-1.7.min.js"></script>
<script>window.jQuery || document.write('<script src="//yoursite.com/libs/jquery.js"><\/script>')</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment