Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.