WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Use Google Libraries

Allows your site to use common javascript libraries from Google's AJAX Libraries CDN, rather than from WordPress's own copies.

Incompatible Plugins

Incompatible Themes

K2

I've had scattered reports that UGL is stepping out of the way when using K2.

A Request

If you're going to flag the plugin as "broken" in the WordPress Plugin Directory, please try and let me know what is broken. I'm not a mind reader.

Technical Details

Use Google Libraries uses the following hooks (each with a priority of 1000).

wp_default_scripts

Use Google Libraries compares it's list of supported scripts to those registered, and replaces the standard registrations src with ones that point to Google's servers. Other attributes (like dependencies) are left intact.

script_loader_src

Use Google Libraries removes the ver=x.y.z query string from the URL used to load the requested library if it is going to load the library from

ajax.googleapis.com

. Otherwise the URL is left unaltered. This both improves the chances of the given URL already being cached, and prevents script.aculo.us from including scripts multiple times.

If jQuery is enqued Use Google Libraries will inject a bit of javascript before the next enqueued script enabling jQuery's noConflict mode as it would with the standard WordPress version.

References

Parts of this plugin (specificly, the dropping of the micro number, which has since been removed for better caching performance) were inspired by John Blackbourn's Google AJAX Libraries, which has very similar goals to this plugin.

Future Plans

  • add ability to enable/disable loading from Google for specific libraries

Requires: 2.9.1 or higher
Compatible up to: 3.6b3
Last Updated: 2013-5-22
Downloads: 321,742

Ratings

4 stars
4.7 out of 5 stars

Support

1 of 3 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,5,5
100,3,3
67,3,2 100,1,1 100,1,1 100,3,3
100,6,6
100,3,3 67,3,2 100,5,5
100,12,12
100,1,1
100,1,1 100,1,1
100,1,1
86,7,6
100,2,2
100,4,4
100,5,5
67,3,2
88,17,15 83,6,5
100,1,1 100,3,3
88,8,7
0,2,0 100,7,7 100,1,1
0,1,0 100,6,6
100,12,12
92,12,11
100,5,5
75,12,9 100,5,5 100,7,7
100,3,3
40,5,2
80,5,4
100,1,1
75,4,3
100,2,2
100,3,3
100,2,2
50,2,1
100,2,2