Skip to content

Instantly share code, notes, and snippets.

@ryansukale
Created May 1, 2011 06:00
Show Gist options
  • Save ryansukale/950289 to your computer and use it in GitHub Desktop.
Save ryansukale/950289 to your computer and use it in GitHub Desktop.
Snippet to use the Google CDN to load jQuery
<!DOCTYPE html>
<!--
The below script tag can be used to load the compressed/minified version of
the jQuery API fromt he Google CDN network. This can help in speeding up the
user's browsing experience if the jQuery library has already been cache'd in
the user's browser when used by some other website. So, instead of the browser
loading the API from your own website, it resuses the cache's version of the
jQuery API.
-->
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
//Your jQuery code goes here
});
</script>
</head>
<body>
</body>
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment