Remove jQuery from WordPress ✔️

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_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(){
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.