Posted in
WordPress Optimization |
Comments Off
If you want to use jQuery JavaScript library in your WordPress theme, the best choice is to load the version hosted on Google servers instead of the local one shipped by default with WordPress.
To load jQuery from Google you have to edit the functions.php file of your theme adding these lines of code:
if( !is_admin()){
wp_deregister_script('jquery');
wp_register_script('jquery',...