I have seen topics that recommend improve the speed deleting the
Remove jQuery migrate
which is your advice about that ? What is that making ? and could be possible to give me the code that i must add into my child functions page . thanks
I have seen topics that recommend improve the speed deleting the
Remove jQuery migrate
which is your advice about that ? What is that making ? and could be possible to give me the code that i must add into my child functions page . thanks
Hi There,
Iโve tried with your code and itโs working fine on my end.
If you want the code shorter, you can use this code:
/**
* Dequeue jQuery Migrate script in WordPress.
*/
function isa_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', 'isa_remove_jquery_migrate' );
Regards!
it does not cause any issues isnt it ? I am using 7.1 php and the last version of x theme and plugins maintaing everything on the last date . ( by the way which is the function of this .js ) I have read that is an old js that we do not need in 2018 .
Hi There,
Removing it could cause incompatibility issues, so we cannot guarantee. I would highly recommend to consult a developer, so they can monitor and fix your issues.
For example, you can refer (https://wordpress.stackexchange.com/questions/224661/annoying-jqmigrate-migrate-is-in-console-after-update-to-wp-4-5).
Thanks!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.