// Dequeue jQuery Migrate script in WordPress.
function remove_jquery_migrate(&$scripts) {
    if(!is_admin()) {
        $scripts->remove( 'jquery');
        $scripts->add( 'jquery', false, array( 'jquery-core' ), '1.12.4' );
    }
}
add_filter('wp_default_scripts', 'remove_jquery_migrate');