Load jQuery from Google Library in your WordPress web site

Quite often some WordPress themes are loading jQuery locally which is slowing down your website. This is the simple way how to load jQuery from Google servers. As usually, place this code snippet to your function.php file.

function modify_jquery()
{if (!is_admin()) {
wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js', false, '1.12.4');
add_action('init', 'modify_jquery');