Dequeue Wordpress Scripts

I have a bunch of JQUERY UI files that load in the footer of my wordpress site.

These files are in my wp-includes/js/jquery/ui folder, is it bad if i minify + combine all of these files?

I tried to put this in my functions.php but it wasnt working. How can i get rid of wordpress from loading all of these UI scripts and load my combined file?

wp_dequeue_script(' autocomplete '); //url wp-includes/js/jquery/ui/autocomplete.min.js
wp_dequeue_script(' core ');  //url wp-includes/js/jquery/ui/core.min.js
wp_dequeue_script(' menu ');  //url wp-includes/js/jquery/ui/menu.min.js
wp_dequeue_script(' position ');  //url wp-includes/js/jquery/ui/position.min.js
wp_dequeue_script(' widget ');  //url wp-includes/js/jquery/ui/widget.min.js

wp_register_script(' combined-script', 'wp-includes/js/combined-script.js', '1.0.0'); //register script
wp_enqueue_script(' combined-script '); //hooks into add_action

Matthew BHackAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Matthew BHackAuthor Commented:
//remove jquery migrate
function remove_jquery_migrate( $scripts ) {
    if ( ! is_admin() && isset( $scripts->registered['jquery'] ) ) {
        $script = $scripts->registered['jquery'];

        if ( $script->deps ) {
            $script->deps = array_diff( $script->deps, array( 'jquery-migrate' ) );
add_action( 'wp_default_scripts', 'remove_jquery_migrate' );


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.