Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm thinking about whether it makes more sense to include the file from the jQuery website, rather than hosting it on your own server, since 1st time visitors probably already have the jquery-latest.min.js from downloaded and will be able to use a cached version of it, so page load time will be a bit faster.

Does anyone know how this works and want to share their thoughts? Do you think it is irrelevant or could there be some milliseconds to gain :) ?

share|improve this question
You should most definately not include the jQuery script from -… - Instead use the Google or Microsoft CDNs. – Smudge Aug 8 '11 at 13:10
A-ha thanks for the heads up! – abcde123483 Aug 8 '11 at 13:48
up vote 0 down vote accepted

most browsers will make anywhere from 4-6 parallel get requests to the same hostname to get css/js/images from the server. So if all your assets point to the same hostname then offloading the jquery one might be a good idea for speed for those that do not even have it cached cause the browser will make an additional get request after the 4-6 to get your assets.

The better place to link the file is the google cdn though

That way the download will happen from a server closer to the user.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.