Important: This plugin is no longer being updated. It has been superceded by the good work of Jason Penney with his Use Google Libraries WordPress plugin which uses code based on this plugin. I recommend that you use his plugin from now on.
Description
This plugin replaces the most common JavaScript libraries in WordPress with the corresponding files on Google AJAX Libraries.
“The AJAX Libraries API is a content distribution network and loading architecture for the most popular open source JavaScript libraries.”
Note that this plugin does not actually replace or remove any files from your WordPress installation. It simply replaces any references to them with references to the corresponding files on Google AJAX Libraries.
Installation
- Unzip the ZIP file and drop the folder straight into your
wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- That’s it!
Which Libraries are Supported?
The current version of the plugin supports the following JavaScript libraries:
- jQuery
- Prototype
- Scriptaculous
- MooTools
- Dojo
Download
ZIP file from downloads.wordpress.org
You should use the ‘Use Google Libraries’ WordPress plugin instead now.
Great idea, Thanks!
It seems however that some libraries get routed to google, and some not.
In my case – it works for prototype but doensn’t work for scriptculous
I do get http://ajax.googleapis.com/ajax/libs/prototype/1.6/prototype.js?ver=1.6
but I also get http://my-site.com/wp-includes/js/scriptaculous/scriptaculous.js?ver=1.8.0
Wonderfull post
Google also have the scriptaculous effects.js file available on their servers:
http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.1/effects.js
Might be worth adding that one to the list as well.
Otto, that’s worth knowing. They might have some other sub-libraries (is that what they’re called?) on there too. I’ll have a dig around and update the plugin.
great work.
many thanks.
Yeah, it looks like most of the scriptaculous files are on there, actually:
http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.1/dragdrop.js
http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.1/slider.js
etc…
Definitely consider adding all of those to the plugin as well!
This plugin is no longer being updated. It has been superceded by the good work of Jason Penney with his Use Google Libraries WordPress plugin which uses code based on this plugin. I recommend that you use his plugin from now on.