This may be obvious to some, but I’ve been wondering: why should I depend on Google’s server to host jQuery for my site?
Is it only because it loads faster this way?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is because:
(Most browsers will only download 3 or 4 files at a time from any given site.)
(As more sites follow this practice, more users already have the file ready.)
(Google can pre-compress the file in a wide array of formats (like GZIP or DEFLATE). This makes the time-to-download very small, because it is super compressed and it isn’t compressed on the fly.)
(Google is basically offering free bandwidth.)
(Google has servers all over the world, further decreasing the latency.)
(If you like to “fly by the seat of your pants,” you can always use the latest version of any script that they offer. These could fix security holes, but generally just break your stuff.)