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.

What happens when Google updates their library versions?

Google has stated that they intend to keep every file they've hosted available indefinitely, so you shouldn't need to worry about them disappearing.

Why isn't in doing anything?

Firstly, if you are using a caching plugin, flush the cache or temporarily disable it to be sure it's not doing anything. That said, I've done my best to make Use Google Libraries gracefully step out of the way when things are not as expected. While not, perhaps, giving you the greatest benefit it helps ensure you site doesn't just flat out stop working.

In general, anything that calls wp_register_script and/or wp_eneque_script before 'init' causes trouble for Use Google Libraries. I've made an effort to force it to try and run anyhow, so please report any issues with this. If you have 'WP_DEBUG' enabled, a message will be logged letting you know this is happening.

Please see the section on Incompatible Plugins and Incompatible Themes for specific information.

How do I use the libraries supplied by Use Google Libraries?

The same way you use them when Use Google Libraries isn't installed using 'wp_enqueue_script'. In fact you should develop your theme or plugin without Use Google Libraries being enabled at all, then test it both ways.

Why do some scripts continue to use the WordPress supplied versions?

Assuming some other plugin or theme isn't the cause, Use Google Libries does it's very best to ensure your site behaves as it should when using the stock WordPress scripts. If WordPress is asking for a version of a script that Google isn't hosting, then it will continue to use the WordPress supplied version.

Can I always load the latest version of a hosted script?

No. Use Google Libraries doesn't do that because it would almost certainly break WordPress. Even if it didn't, the less 'version specific' URLs supported by Google's CDN set a short term 'Expires' header, so there wouldn't be much point.

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

Ratings

4 stars
4.7 out of 5 stars

Support

0 of 4 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says 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,1,1