
Frontend asset manager showing CSS and JavaScript grouped by plugin, theme, or WordPress Core
Code Unloader is a free WordPress asset manager and script manager that lets you unload unused plugin CSS and JavaScript (JS) on selected pages without writing PHP. Unload assets where a page does not need them and keep them everywhere else. Reduce HTTP requests and page weight by loading files only where they are needed, which improves page speed and performance scores, 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/
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/
WordPress registers each script and stylesheet by handle, and most plugins enqueue theirs on every page. Code Unloader dequeues those handles on the pages you choose, so a form script, slider stylesheet or page-builder bundle loads only where it is used. It works on registered files from plugins, themes and WordPress core alike, and shows you the file’s source before you unload it.
/shop/*), and regular-expression matching?nowpcu bypass for testing the unoptimized page<script> and <style> blocks for easier investigationEvery rule can be disabled or deleted. If an unloaded file affects the page, append ?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.
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.