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.

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

Leave a Reply

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