Use Google’s hosted jQuery in WordPress

If you want to speed up your WordPress site you should be using Google to host the common JavaScript libraries.

Remove the WordPress jQuery version and add the Google’s.

Add the following lines to your functions.php (inside your template folder).


This code can be also used in bbPress . You just need to replace the is_admin with bb_is_admin.

Plugin Solution

Don’t wanna work around files and functions?

There’s a great plugin that does the work for you: Use Google Libraries.


3 Responses to “Use Google’s hosted jQuery in WordPress”

  1. Gautam October 17, 2010 at 6:48 am #

    You can use [code]bb_is_admin[/code] function in bbPress. 😉

    • quicoto October 18, 2010 at 8:25 am #


      Thank you Gautam 😉

  2. Todd M July 2, 2012 at 10:04 pm #

    Thank you! 🙂

Leave a Reply

Add <code> Some Code </code> by using this tags.