How to Loading jQuery from the Google CDN

CDN Content Delivery network is considered the most reliable way to get content from the Internet,

then let’s add jQuery from CDN. You need to add this code to “functions.php”

add_action( 'init', 'jquery_register_google_cdn' );
function jquery_register_google_cdn() {
  if ( !is_admin() ) {
	wp_deregister_script( 'jquery' );
	// register from google and for footer
	wp_register_script( 'jquery', ( 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' ), false, null, true );
	wp_enqueue_script( 'jquery' );
  }
}