Removing jQuery migrate and working with dependencies
First part… OK, so in your theme/plugin you have: wp_enqueue_script( ‘jquery’ ); wp_enqueue_script( ‘scripts’, get_template_directory_uri() . ‘/js/scripts.min.js’, array( ‘jquery’ ) ); The first line, enqueuing jquery isn’t necessary – you put jquery as dependency in second line, so it will be included anyway. These lines inform WP that you want to enqueue given file as … Read more