Linking to Google’s jQuery Repository
Sunday, November 30th, 2008Here’s the code to link to Google’s jQuery repository. It grabs the latest jquery. Also added before that is the ie7.js script. The idea here is to speed up the load time if the user has already cached this file from another site using the same technique.
You can go here http://code.google.com/p/jqueryjs/downloads/list for the download list and right-click copy-link location.
- <!–[if lt IE 7]>
- <script src=“http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js” type=“text/javascript”></script>
- <![endif]–>
- From jQuery:
- <script type=“text/javascript” src=“http://code.jquery.com/jquery-latest.js”></script>
- OR
- From Google:
- <script type=“text/javascript” src=“http://jqueryjs.googlecode.com/files/jquery-1.2.6.js”></script>
