Skip to content

Instantly share code, notes, and snippets.

@christierney402
Last active December 15, 2015 23:20
Show Gist options
  • Save christierney402/5339941 to your computer and use it in GitHub Desktop.
Save christierney402/5339941 to your computer and use it in GitHub Desktop.
JS: Google CDN hosted jQuery Base and jQuery UI with local backup #snippet
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/overcast/jquery-ui.min.css">
<!--- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline --->
<!--- Load the full jQuery version (ex 1.9.1 not 1.9) so it cached --->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>
window.jQuery || document.write('<script src="/js/jquery-1.9.1.min.js"><\/script>');
</script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment