Which way is better? To link to the jQuery Pack at http://ajax.googleapis.com. Or to download the appropriate file and link locally? Does it matter? Is there a chance the link may disappear? Or is there a chance the file online will be updated, and it's better to link to it? Curious.
Thanks, Tracy
From the Google Code site:
Google works directly with the key stake holders for each library effort and accepts the latest stable versions as they are released. Once we host a release of a given library, we are committed to hosting that release indefinitely.
One of the main points of Google hosting the jQuery library is so that it is cached in a single place. Consider the following scenario:
Now if we all fetched jQuery from the Google servers, the scenario goes like this:
What if the user comes from a country where Google is banned? Also, some time ago we had to pay for international internet traffic (while regional traffic was "free") in my country an I suspect it may be still the case in some other countries. Users would be upset for having to pay for jQuery. Even minimized. It's safer to keep the files you need on your server.
EDIT: Another reason for not using jQuery from Google servers (if used on your intranet: https://meta.stackexchange.com/questions/10071/employer-blocks-jquery-from-google-doh)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With