• Dear Team,
    I request your support to remove the following scripts from loading in the frontend.
    /wp-includes/js/jquery/ui/core.min.js
    /wp-includes/js/jquery/ui/mouse.min.js
    /wp-includes/js/jquery/ui/resizable.min.js
    /wp-includes/js/imagesloaded.min.js
    /wp-includes/js/masonry.min.js
    /wp-includes/js/jquery/jquery.masonry.min.js

    I have tried WP_deregister function, remove_action function but nothing works. Requesting your help.

Viewing 1 replies (of 1 total)
  • A clean WordPress with default themes does not load this Js files on front end.May be this scripts are being load by any Plugin/Theme you have installed.Make sure that this script are not required by any other plugins/themes, otherwise your site will be broke.

    If these scripts are being loaded by your custom plugin/ theme you need to use wp_dequeue_script($handle). If it is being loaded by third party theme/plugin , you need to use wp_deregister_script($handle)

    This article may help you. Check the section called Method 2 for code.
    https://metabox.io/remove-css-javascript-files-wordpress/

Viewing 1 replies (of 1 total)
  • The topic ‘Deregister WordPress Default JQuery Files’ is closed to new replies.