Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it bad to hotlink jQuery from jquery.com?

This will probably get a pretty nasty response, but my server isn't the fastest at the moment, and my site loads much faster if I hotlink from the jQuery homepage so they server the content. Is this bad to do? Does jQuery eventually remove those js files from their page?

like image 490
alt Avatar asked Jun 28 '11 22:06

alt


1 Answers

Better hotlink it from Google API libraries.

Very big advantages:

  • Google is fast and highly available
  • Separate hosts, allows the client to load JQuery simultaneously with your pages and images (browsers support only a limited number of connections per host)
  • Probably even faster still, because many websites use it, so this Google version is probably in your visitor's cache anyway.
like image 138
GolezTrol Avatar answered Oct 04 '22 02:10

GolezTrol