In my theme, jQuery is loaded in the header by default. I even dequed it in my functions.php
but still in the header I have the jquery :
function remove_jquery_migrate( &$scripts){
if(!is_admin()){
$scripts->remove( 'jquery');
$scripts->add( 'jquery', false, array( 'jquery-core' ), '1.2.1' );
}
}
add_filter( 'wp_default_scripts', 'remove_jquery_migrate' );
function wpdocs_dequeue_script() {
wp_dequeue_script( 'jquery' );
}
add_action( 'wp_print_scripts', 'wpdocs_dequeue_script', 100 );
but this is printed in the header:
<script type='text/javascript' src='...wp-includes/js/jquery/jquery.js?ver=1.12.4'></script>
I don't know if a plugin is causing this but I want to remove this as I am already loading the jquery using Google CDN in the footer.