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”
![[RSS: Posts]](http://jasonpenney.net/wp-includes/images/rss.png)




Outliers: The Story of Success
The Bro Code
Help Is on the Way: A Collection of Basic Instructions
Lankhmar Book 3: Swords in the Mist
Lankhmar Book 2: Swords Against Death


November 27th, 2008 at 10:44 am
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.
November 28th, 2008 at 11:00 am
@John Blackbourn - Thanks for the kind words (and for releasing your plugin under the GPL)!
January 4th, 2009 at 10:59 pm
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.
January 7th, 2009 at 10:33 am
@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.
January 8th, 2009 at 9:11 am
@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).
November 27th, 2008 at 9:10 am
[...] Use Google Libraries [...]
November 27th, 2008 at 4:24 pm
[...] Use Google Libraries [...]
November 27th, 2008 at 7:18 pm
[...] Use Google Libraries [...]
November 27th, 2008 at 9:02 pm
[...] Use Google Libraries [...]
November 28th, 2008 at 12:59 am
[...] Use Google Libraries [...]
November 28th, 2008 at 5:02 am
[...] Use Google Libraries: A Plugin to Improve Script Loading Performance in WordPress | All the Billion … Supported Libraries and Components [...]
November 29th, 2008 at 12:45 am
[...] Use Google Libraries [...]
November 30th, 2008 at 5:27 am
[...] Use Google Libraries [...]