| 开发者 | dalibord |
|---|---|
| 更新时间 | 2026年9月3日 21:38 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
/shop/*), and regular-expression matching?nowpcu bypass for testing the unoptimized page<script> and <style> blocks for easier investigation?nowpcu to the URL to bypass all Code Unloader rules for that request. You can also use the global kill switch to restore every asset sitewide while keeping your rules saved.
Test unloading changes on a staging site first whenever possible. Removing a required CSS or JavaScript file can affect a page's appearance or functionality.
Compatibility
Code Unloader is designed to work alongside common caching, optimization, e-commerce, and page-builder plugins, including WP Rocket, W3 Total Cache, LiteSpeed Cache, WP Super Cache, WooCommerce, Elementor, Divi, and WPBakery Page Builder.
PHP 8.0 or higher is required.
No. Code Unloader unloads an entire registered CSS file on pages that do not need it. It does not remove individual unused selectors from inside a stylesheet.
Yes. Open the frontend asset panel, switch off the asset, and choose where the rule should apply. You do not need to add PHP snippets or edit theme files.
Yes. A page can lose styling or functionality if you unload a required dependency. Test each change, preferably on staging. Use ?nowpcu for a one-request bypass or the kill switch to restore all assets immediately.
Yes. Rules are stored in a custom database table and are not removed when plugin caches are cleared or Code Unloader is reactivated.
The kill switch is an emergency recovery option in Settings > Code Unloader > Settings. When active, all rules are bypassed and every asset loads normally. Your rules are not deleted and resume when you deactivate the kill switch.
Append ?wpcu to a frontend URL to open the asset panel for logged-in administrators, including on pages where the Admin Toolbar is hidden. The parameter remains while the panel is open and is removed when you close it.
Append ?nowpcu to a URL to bypass all Code Unloader rules for that request. The page loads as if Code Unloader were not applying any rules. This is useful for testing, debugging, and comparing optimized and unoptimized asset loading.
Yes. Choose an exact URL, wildcard pattern, or regular expression when creating a rule. Regular expressions are validated before saving.
The Inline Blocks tab detects and lists <script> and <style> tags printed directly into the page HTML. It helps you identify inline code, but those blocks cannot currently be unloaded from the frontend panel.
No. Code Unloader controls whether a registered CSS or JavaScript file loads on a matching page. Caching and minification plugins change how files are stored or delivered. They can be used together.
PHP 8.0 or higher. The plugin will not activate on PHP 7.x.
changelog.txt in the plugin folder.