GoogleAjax

Overwrites local paths to common Javascript libraries, like jQuery, MooTool etc, with the paths hosted by Google using either direct links or Google's google.load() method.

The GoogleAjax plugin overwrites any local paths to common Javascript libraries, with the paths hosted by Google.

A full list of libraries hosted by Google can be found here

By default, this plugin uses the latest version of each library, and loads the libraries using Google's preferred google.load() method, however you can choose to link directly to the files if you prefer.

In order for this plugin to work, you need to ensure your plugins and theme are using Habari's Stack methods, ie Stack::add(), to add the libraries to either the "template_header_javascript" or "template_footer_javascript" stacks and that they are using the generic names that correspond with the generic library names offered by Google, eg jquery.

For example:

Stack::add( "template_header_javascript", "http://example.com/scripts/jquery.js", "jquery" );