Re:Hotlinking to jquery.com will be disabled on January 31, ...
by Encosia on Friday December 31, 2010 @11:46AM
(#2055744)
Avoid using the "latest version" reference. In order to ensure that it's serving the latest version, it serves the script with an extremely short expires header.
Re:Hotlinking to jquery.com will be disabled on January 31, ...
by scotth on Friday December 31, 2010 @12:00PM
(#2055786)
Not to mention that referencing the latest version means that your code will be untested against anything but the library version you built against.
Re:Hotlinking to jquery.com will be disabled on January 31, ...
by alanh on Friday December 31, 2010 @08:08PM
(#2056952)
Keep in mine that many sites use the Google version, so if you do to, some of your visitors will get it "free" (from their local cache). The caveat about not using the "latest version" stands. And for the gods' sake don't use the actual google Ajax loader API, it's an extra script to load. (Include the above URL directly, not by doing a .load() on something else.)
http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js (always the latest version)
http://code.jquery.com/jquery-1.4.4.min.js
http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.4.min.js