Use Google Libraries: A Plugin to Improve Script Loading Performance in WordPress

Download & Installation

The documentation and download are available on the Use Google Libraries page in the WordPress plugin directory.

The Basics

A number of the javascript libraries distributed with WordPress are also hosted on Google’s AJAX Libraries API. This plugin allows your WordPress site to use the content distribution network side of Google’s AJAX Library API, rather than serving these files from your WordPress install directly.

This provides numerous potential performance benefits:

  • increases the chance that a user already has these files cached
  • takes load off your server
  • uses compressed versions of the libraries (where available)
  • Google’s servers are set up to negotiate HTTP compression with the requesting browser

Supported Libraries and Components

Try it out, and please rate it. If you have any problems or suggestions leave a comment.

13 Responses to “Use Google Libraries: A Plugin to Improve Script Loading Performance in WordPress”

  1. John Blackbourn Says:

    Hi Jason,

    Nice work on this plugin. I never got round to updating my plugin to handle the various sub-libraries, and now you’ve done the hard work for me :) I’ll point everyone to your plugin in the future.

    Regards,
    John.

  2. Jason Penney Says:

    @John Blackbourn - Thanks for the kind words (and for releasing your plugin under the GPL)!

  3. malcalevak Says:

    Jason,
    I was thinking to myself the other day if this would be possible, luckily before I tried writing it myself I did a search and saw it’d already been done.
    Unfortunately I can’t seem to get it to work and I’m not sure why. I cleared out my cache and refreshed the page just to make sure, but every time it’s pulling from the WordPress directory and not Google. I even switched off the K2 “theme” just to make sure that wasn’t causing a conflict.
    I’m using WP 2.7.

    Any ideas?

    Thanks.

  4. Jason Penney Says:

    @malcalevak - Sorry for the delay in reply. I can’t think of any reason why it wouldn’t be working for you. Are you using wp-cache or wp-super-cache? You didn’t leave a link so I can’t check which of the supported libraries are being loaded on your site, but I’d be glad to help you figure it out.

  5. malcalevak Says:

    @Jason Penney - Jason, Thanks for getting back to me. I thought I’d left a link, but it seems I was mistaken. I’ve attached one now.
    I’ve attempted to use wp-cache and wp-super-cache, but wasn’t actually able to get them to work right, so I turned them off, and they were not on when I actually reported the problem.
    Would it be possible that the K2 theme (which uses jQuery) is somehow overriding what’s being done by the plugin? (This seems doubtful, but worth mentioning).

  6. WordPress Plugin Releases for 11/27 | bloground.ro - Blogging resources, WordPress themes and plugins for your development Says:

    [...] Use Google Libraries [...]

  7. Weblog Tools Collection: WordPress Plugin Releases for 11/27 | KaosKoxp Oyun Portalı Says:

    [...] Use Google Libraries [...]

  8. WordPress Plugin Releases for 11/27 | BlogBroker24-7 Says:

    [...] Use Google Libraries [...]

  9. WordPress Plugin Releases for 11/28 | hieudt's blog Says:

    [...] Use Google Libraries [...]

  10. WordPress Plugin Releases for 11/27 » All About Technologies Says:

    [...] Use Google Libraries [...]

  11. Quasi.dot Says:

    [...] Use Google Libraries: A Plugin to Improve Script Loading Performance in WordPress | All the Billion … Supported Libraries and Components [...]

  12. WordPress Plugin Releases for 11/27 Says:

    [...] Use Google Libraries [...]

  13. WordPress Plugin Updates for 11/27 | Zack Live Says:

    [...] Use Google Libraries [...]

U Comment/I Follow

Leave a Reply

comment policy

Close
  • Social Web
  • E-mail
Close
  • Social Web
  • E-mail