[WordPress] 外掛分享: Remove jQuery Migrate

首頁外掛目錄 › Remove jQuery Migrate
3,000+
安裝啟用
★★★★★
5/5 分(7 則評價)
1149 天前
最後更新
問題解決
WordPress 3.6+ v1.0.3 上架:2017-10-25

內容簡介

這個外掛可以在啟用時從你的 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

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon