My wordpress site is a bit heavy to download. On the frontend, its including jquery unnecessarily. In my firebug it looks like:
jquery.js?ver=1.3.2
>
Remove the default jquery and add your jquery from folder or from CDN. Use only one, 'local' or 'cdn'
// Remove the WordPress default jquery
wp_deregister_script( 'jquery' );
// using a local file
wp_enqueue_script(
'jquery', get_template_directory_uri() . '/lib/jquery-3.3.1.min.js','', '3.3.1', true
);
// using CDN
wp_enqueue_script(
'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', '', '3.3.1', true
);
// $handle: 'jquery'
// $src:
// local: get_template_directory_uri() . '/lib/jquery-3.3.1.min.js'
// cdn: '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'
// $deps: '' (leave it empty)
// $ver: '3.3.1'
// $in_footer: true (boolean)
wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );