Use code PERFMATTERS for an extra 10% off!
  1. Home
  2. Docs
  3. General
  4. How to remove jQuery Migrate in WordPress

How to remove jQuery Migrate in WordPress

They started adding jQuery Migrate in WordPress 3.6. Most up-to-date frontend code and plugins don’t require jquery-migrate.min.js. It’s for themes and plugins that have older dependencies to translate across. Basically, jQuery Migrate helps older code talk to the new code.

In most cases, this simply adds unnecessary load to your site. You can see this running if you launch Chrome Devtools console.

jquery-migrate.min.js
jquery-migrate.min.js

Remove jQuery Migrate

Follows the steps below to remove jQuery Migrate. Note: jquery-migrate.min.js is no longer enabled by default in WordPress 5.5 and higher.

Warning: If you’re running a page builder like Divi, Elementor, Thrive Architect, or Visual Composer, we recommend leaving jQuery Migrate enabled. Page builders tend to lag behind in regard to jQuery.

Step 1

Click into the Perfmatters plugin settings.

Perfmatters plugin settings
Perfmatters plugin settings

Step 2

Make sure you’re on the “General” submenu.

Perfmatters General tab
Perfmatters General submenu

Step 3

Toggle on “Remove jQuery Migrate.”

Remove jQuery migrate with Perfmatters plugin
Remove jQuery migrate with Perfmatters plugin

Step 4

Scroll down and click “Save Changes.”

Was this article helpful?

Related Articles