
內容簡介
Code Unloader 是一款免費的 WordPress 資源管理外掛,讓使用者能夠在選定頁面上卸載未使用的插件 CSS 和 JavaScript,而無需撰寫 PHP 程式碼。透過減少 HTTP 請求和頁面重量,提升網站速度和效能。
【主要功能】
• 卸載選定頁面的註冊 CSS 和 JavaScript
• 支援精確 URL、萬用字元及正則表達式匹配
• 為登入用戶和 WooCommerce 頁面設置條件
• 提供桌面和行動裝置專用的資源規則
• 一鍵恢復所有資源的功能
• 支援 JSON 匯入/匯出和審計日誌
外掛標籤
開發者團隊
② 後台搜尋「Code Unloader – Unload CSS & JavaScript Per Page」→ 直接安裝(推薦)
原文外掛簡介
Code Unloader is a free WordPress asset manager that lets you unload unused plugin CSS and JavaScript on selected pages without writing PHP. Reduce HTTP requests and page weight by loading files only where they are needed, with a one-click kill switch and per-request bypass for quick rollback.
One WordPress.org user unloaded eight JavaScript files and two CSS files from the homepage, reducing it by 634.2 KB and improving PageSpeed from 96 to 99. Results vary by site and depend on which assets can be safely unloaded.
Read the review:
https://wordpress.org/support/topic/very-good-increases-pagespeed/
Common uses
Unload contact-form CSS and JavaScript from pages without a form
Stop WooCommerce assets from loading on pages that do not use shop features
Unload slider, sharing, popup, or page-builder files where they are not needed
Create different asset rules for desktop and mobile visitors
Apply rules to one URL, a group of URLs, post types, or conditional page types
How it works
Open any frontend page while logged in as an administrator.
Click ⚡ Assets in the WordPress Admin Toolbar.
Find a CSS or JavaScript file and switch it off.
Choose where the rule should apply: an exact URL, wildcard pattern, regular expression, device type, or condition.
Save the rule, clear page cache if needed, and test the page.
The frontend panel groups assets by plugin, theme, or WordPress Core, making it easier to see what is loading and where it came from.
Official plugin homepage:
https://wpservice.pro/our-products/code-unloader/
Main features
Unload registered CSS and JavaScript on selected pages or across matching URLs
Exact URL, wildcard (/shop/*), and regular-expression matching
Conditions for logged-in users, WooCommerce pages, shortcodes, and post types
Desktop-only and mobile-only asset rules
Rule groups, global rule management, audit log, and JSON import/export
One-click kill switch that restores all assets without deleting any rules
Per-request ?nowpcu bypass for testing the unoptimized page
Detection of inline
