Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are pros and cons of letting Google host jQuery for me? [duplicate]

Possible Duplicate:
Should I link to Google API’s cloud for JS libraries?

Do you serve jQuery to your users from Google on a public websites ?

like image 807
Eugene Yarmash Avatar asked Feb 09 '10 14:02

Eugene Yarmash


2 Answers

Pros:

  • There is a very high chance that your site users will already have the file cached on their computer which speeds up load time.

Cons:

  • If Google is down, your site won't work.
  • If you need to use your site (say on an intranet, or local computer) without internet access, you can't.

Google Uptime: I saw it argued here before on another question that Google will have better uptime than your server. But funny enough, another commenter brought up this point: When will it ever matter that your JS has better uptime than the rest of your site.

like image 123
Doug Neiner Avatar answered Sep 30 '22 16:09

Doug Neiner


pros will be that it will be cached for uses that visited another site that also uses Google hosted jQuery

con: if Google is down then your jQuery is unavailable

like image 39
SQLMenace Avatar answered Sep 30 '22 17:09

SQLMenace