Search code examples
jquerycdnhotlinking

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?


Solution

  • 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.