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', ( '' ), false, null, true );
	wp_enqueue_script( 'jquery' );