Created
May 1, 2011 06:00
-
-
Save ryansukale/950289 to your computer and use it in GitHub Desktop.
Snippet to use the Google CDN to load jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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