The same jquery version doesn't work if there is on Google Apis <p>I'm very confused, so if I put this in functions.php, on Wordpress, it works</p> <pre><code>function modify_jquery() { if (!is_admin()) { // comment out the next two lines to load the local copy of jQuery wp_deregister_script('jquery'); wp_register_script('jquery', 'http://sitgesgroup.com/wp-content/themes/toolbox/assets/js/jquery-1.9.0.min.js', false, '1.9.0'); wp_enqueue_script('jquery'); } } add_action('init', 'modify_jquery'); </code></pre> <p>BUT,</p> <p>if I put this it breaks</p> <pre><code>http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.jsfunction modify_jquery() { if (!is_admin()) { // comment out the next two lines to load the local copy of jQuery wp_deregister_script('jquery'); wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js', false, '1.9.0'); wp_enqueue_script('jquery'); } } add_action('init', 'modify_jquery'); </code></pre> <p>Why if these are the same file?</p> <p>Thanks!</p>