Skip to content

Instantly share code, notes, and snippets.

@steveosoule
Created October 11, 2012 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveosoule/3876149 to your computer and use it in GitHub Desktop.
Save steveosoule/3876149 to your computer and use it in GitHub Desktop.
Google CDN jQuery
// Use this script to load jQuery from Google's server instead of storing a local copy.
// It uses the same code as the Google Analytics tracking code to fetch it from a secure address if necessary.
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript src="/js/jquery.min.js"%3E%3C/script%3E'))</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment