Moving jQuery to footer
-
My jQuery script is currently being loaded from Google (which significantly increases my site speed). This is in my
functions.php
file:if( !is_admin()){ wp_deregister_script('jquery'); wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"), false, '1.3.2'); wp_enqueue_script('jquery'); }
However, this script is still loaded in the header section. Is there any way to code this so that this will load in the footer?
Thomas
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Moving jQuery to footer’ is closed to new replies.