[WordPress] 外掛分享: Unloadly – Disable Unused CSS & JS

首頁 › 外掛目錄 › Unloadly – Disable Unused CSS & JS
WordPress 外掛 Unloadly – Disable Unused CSS & JS 的封面圖片
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
24 天前
最後更新
—
問題解決
WordPress 5.8+ PHP 7.4+ v1.1.0 上架:2026-09-01

內容簡介

Unloadly 是一款能有效提升 WordPress 網站速度的外掛,透過停用不必要的 CSS 和 JavaScript 檔案,減少頁面載入時間,讓網站運行更流暢,並改善使用者體驗。

【主要功能】
• 每頁控制:選擇特定頁面不載入的外掛 CSS 和 JS
• 類別與標籤規則:一次設定適用於所有相關文章
• 全站移除:在設定中列出不需要的樣式或腳本
• 簡單易用:無需編碼,直接在編輯器中選擇外掛
• 輕量化:專注於移除不必要的檔案,不增加額外功能

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Unloadly – Disable Unused CSS & JS」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Is your WordPress site slow, even with a cache plugin? One common reason is that plugins load their CSS and JavaScript files on every page, even on pages that never use them. A contact form plugin loads on your blog posts. WooCommerce loads on your About page. A slider loads on pages with no slider. Every extra file makes your pages heavier and slower to load.
Unloadly speeds up your website by stopping that waste. Edit a page, choose the plugins that page does not need, and their CSS and JavaScript files stop loading on that page. No coding, no hunting for script names, no complicated setup.
The result is smaller pages, fewer requests, and a faster website. It also helps with warnings like “Reduce unused JavaScript” and “Remove unused CSS” in tools such as Google PageSpeed Insights and GTmetrix.
Unloadly works alongside any caching or optimization plugin. It removes the files you don’t need; your cache plugin serves what is left. Flush your cache after you change a rule.
Why use Unloadly?

Speed up your WordPress site — Pages load faster when they only download what they use.
Disable plugins on specific pages — Keep a plugin active but stop it from loading on pages where it isn’t needed.
Simple for beginners — Select plugins from a list in the page editor. No code.
Safe — The plugin keeps running. Only its frontend CSS and JS files are removed from the pages you choose.
Lightweight — Unloadly does one job and doesn’t add its own cache, minification, or delay-JS features.

Features

Per-page control — In the editor sidebar, select the plugins whose CSS and JS should not load on that page or post. Search the list when you have many plugins.
Category and tag rules — Set a rule once on a category or tag and every post in it follows. A post with its own selection always wins over its terms.
Sitewide removal — On Settings → Unloadly, list individual style or script handles once, and they are removed on the entire frontend.
Head cleanup — Optionally remove oEmbed, REST API, and RSD discovery links from wp_head.
Quick check — View the page source and search for the plugin folder name. If the name is gone, those files were likely not printed. This is a hint, not a full audit.
Developer hooks — Filters and actions are prefixed with unloadly_. See includes/Hook.php.

How to speed up your site with Unloadly

Edit a page or post. In the Unloadly box, select the plugins that page doesn’t need (for example WooCommerce on an About page, or a contact form plugin on every page except Contact).
Update the page. Those plugins’ CSS and JavaScript no longer load on that page.
Optional: edit a category or tag (Posts → Categories or Posts → Tags) and select plugins there. Every post in that term inherits the rule, so you don’t repeat the work. A post with its own selection ignores its term rules.
Optional: open Settings → Unloadly to remove specific CSS or JS handles sitewide, and to strip discovery links from the document head.
Clear your cache and test your page speed again.

Rule priority
For each URL Unloadly applies one list, in this order:

The post’s own selection, when the post has at least one plugin selected.
The terms of that post — the combined rules of its categories and tags. A rule on a parent category also covers posts in its child categories.
Nothing per page, when neither is set. Sitewide handle rules still apply.

Category and tag rules also apply on that term’s own archive page.
Works with popular plugins
Unloadly removes assets by plugin folder and by script/style handle. It is meant to sit beside the tools you already use, not replace them.

WooCommerce — Disable shop CSS and JS on pages that are not the shop, cart, or checkout.
Elementor and Divi — Disable builder CSS and JS on pages that don’t use the builder. Leave them loaded on pages that do. Unloadly does not strip assets on Elementor editor or preview requests, so the canvas keeps its files.
Contact forms and sliders — Load them only on the pages where they appear.
Cache plugins — Change Unloadly rules, then flush the cache so visitors get the new HTML.

Do not disable a plugin on a page that actually needs it.
Hooks
Developers can change post types, protected plugins, protected handles, and the disabled list for a request. Hook names are prefixed with unloadly_. See includes/Hook.php.
Support
Need help? Open a thread on the WordPress.org support forum, visit the plugin page, or email [email protected].

延伸相關外掛

文章
Filter
Mastodon