To completely remove jQuery from your WordPress website add the following code in the functions.php file in your active theme folder:
/** * Remove jQuery from front-end*/
function my_init() {
if (!is_admin()) {
wp_deregister_script('jquery');
wp_register_script('jquery', false);
}
}
add_action('init', 'my_init');
and to remove jQuery from the back-end:
/** * Remove jQuery from wp-admin */
add_action('wp_enqueue_scripts', 'no_more_jquery');
function no_more_jquery(){
wp_deregister_script('jquery');
}