Google Hosted Version of Jquery (4 posts)

  1. ianatkins
    Posted 5 years ago #

    Hi Guys,

    Noticed that Jquery has been updated. Would be a good idea to use the Google hosted version:

    It is served with header compression, and has a good chance of being cached locally as it is linked from several websites over the web.

    See here for more info:


    What do you think?


  2. ianatkins
    Posted 5 years ago #

    From Nacin on trac:

    Those who run local or intranet installs wouldn't like that so much. There is a plugin (or five) available that unregisters the default jQuery and registers it with the source pointing to Google.

    Good point. I'm guessing that running WP locally isn't the majority case. Be nice if we served the majority, and perhaps tested for local running, or had a check box in the settings page?

  3. Sorry, but this is 100% plugin material. :)

    Also my reply on Trac:

    I can tell you right now we'd get a small revolt if we switched to Google or Yahoo hosted jQuery due to perceived (or even real) privacy concerns.

    Not to mention that WordPress already compresses it itself. It merges all Javascript files together and serves them as one compressed HTTP request. This is much better than serving it off Google or Yahoo.

    As for the checkbox, that's what's known as option bloat. Having too many options is a bad thing, especially when it's trivial for a plugin to change it.

  4. ianatkins
    Posted 5 years ago #

    Fair enough. I didn't realize WordPress also header compressed Jquery, I'll look out for that.

    Is there any documentation / guidelines as to what is considered as a plugin and what is considered core so I don't waste your time in the future!


Topic Closed

This topic has been closed to new replies.

About this Topic