內容簡介
這個外掛可以在啟用時從你的 WordPress 網站的前端移除 jQuery Migrate 腳本(jquery-migrate.min.js 或 jquery-migrate.js)。要重新載入已移除的jQuery Migrate 腳本,只需停用此外掛。
若要檢查前端是否需要 jQuery Migrate,你可以在 wp-config.php 文件中臨時啟用SCRIPT_DEBUG模式,使用 jQuery Migrate 的開發版本(未縮小的版本)。開發版本會在瀏覽器控制台中顯示警告,指出已移除和/或已棄用的 jQuery API。
欲了解有關 jQuery Migrate 的詳細資訊,請造訪此處。
GitHub: https://github.com/icaru12/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
