该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Remove jQuery Migrate

描述

This plugin removes jQuery Migrate script (jquery-migrate.min.js or jquery-migrate.js) from your WordPress site’s front end when the plugin is active. To bring back the removed jQuery Migrate script, simply deactivate this plugin.

To check whether jQuery Migrate is required in the front end, you could use the development version of jQuery Migrate (unminified version) by temporarily turning on SCRIPT_DEBUG mode in wp-config.php file. The development version shows warnings in the browser console when removed and/or deprecated jQuery APIs are used.

For more info about jQuery Migrate, visit here.

GitHub: https://github.com/icaru12/remove-jquery-migrate

安装

  1. From your WordPress dashboard, go to Plugins > Add New
  2. Search for Remove jQuery Migrate
  3. Click Install Now
  4. Activate the plugin
  5. Done!

评价

2021 年 3 月 19 日
This plugin works very good with WP 4.9, but i can say that it is usless with WP 5.5 And they say – with the WordPress 5.5 update, the migration tool known as jquery-migrate is no longer enabled by default.
2021 年 1 月 23 日
Did exactly what I needed it to do after the update to Wordpress 5.6 broke my site due to the jQuery Migrate plugin.
2019 年 2 月 28 日
Does what it says, stops the jquery-migrate JavaScript library from loading on your WordPress website. It’s recommended to delete such unneeded calls & loads if your visitor-facing site uses jQuery, but none of your plugins require the jQuery Migrate library. “What is jQuery Migrate? The jQuery Migrate module (jquery-migrate.min.js) is a javascript library that preserves compatibility of jQuery code developed for versions of jQuery older than 1.9. JQuery Migrate also allows developers to detect deprecated code that is no longer supported by the latest jQuery libraries and to adapt it according to the newest versions of jQuery 1.9 and higher.” jQuery is currently on version 3.x, so modern plugins should not need the migrate library. But if something does happen to break, then you can always uninstall this plugin.
2017 年 11 月 24 日
Thanks for this, I tried several code snippets to de-queue the jquery migrate process but none of them seemed to do the trick. Now I’m loading and processing one less js file!
阅读所有6条评价

贡献者及开发者

“Remove jQuery Migrate” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Remove jQuery Migrate”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.3

  • Minor code improvement
  • Tested up to WordPress 6.0

1.0.2

  • Tested up to WordPress 5.4

1.0.1

  • Added function_exists check.

1.0

  • Initial release.