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