WordPress Plugin: Google AJAX Libraries API
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.
Last reviewed
This entry belongs to WordPress. It was published on May 30, 2008; the same year accounts for 3 pages here. Counting this one, the section runs to 18 pages.
The wording is the original. Where an old note was brief, it is still brief here.
In date order it follows WordPress Plugin: Head Meta – Add Anything to the <head> of a Post and comes before WordPress Plugin: Image Upload HTTP Error Fix, which is how the section is meant to be read.
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.
What follows below is the rest of the section, so a page that turns out to be too short to answer a question at least points at the pages next to it. Dates and version numbers are carried over from the original page rather than refreshed, so an old page reads as old.
From the original thread
7 replies7 replies were left on this page in 2008, kept as they were written. The avatars, profile links and reply form of the software that collected them are not part of this archive, and the addresses readers pasted are kept as text rather than as links.
Yoav
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 scriptculousI 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.0Webdesign
Wonderfull post
Otto
Google also have the scriptaculous effects.js file available on their servers:
http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.1/effects.jsMight be worth adding that one to the list as well.
Ludicrous
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.
dupola
great work.
many thanks.Otto
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!
Ludicrous
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.