Title: Code Unloader – Unload CSS &amp; JavaScript Per Page
Author: Dalibor
Published: <strong>मार्च 24, 2026</strong>
Last modified: सितम्बर 3, 2026

---

Search plugins

![](https://ps.w.org/code-unloader/assets/banner-772x250.png?rev=3489999)

![](https://ps.w.org/code-unloader/assets/icon-256x256.png?rev=3489997)

# Code Unloader – Unload CSS & JavaScript Per Page

 By [Dalibor](https://profiles.wordpress.org/dalibord/)

[Download](https://downloads.wordpress.org/plugin/code-unloader.1.4.11.zip)

 * [Details](https://mai.wordpress.org/plugins/code-unloader/#description)
 * [Reviews](https://mai.wordpress.org/plugins/code-unloader/#reviews)
 *  [Installation](https://mai.wordpress.org/plugins/code-unloader/#installation)
 * [Development](https://mai.wordpress.org/plugins/code-unloader/#developers)

 [Support](https://wordpress.org/support/plugin/code-unloader/)

## Description

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/](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

 1. Open any frontend page while logged in as an administrator.
 2. Click **⚡ Assets** in the WordPress Admin Toolbar.
 3. Find a CSS or JavaScript file and switch it off.
 4. Choose where the rule should apply: an exact URL, wildcard pattern, regular expression,
    device type, or condition.
 5. 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/](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 `<script>` and `<style>` blocks for easier investigation

#### Safe, reversible testing

Every 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.

#### 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.

## Screenshots

[⌊Frontend asset manager showing CSS and JavaScript grouped by plugin, theme, or
WordPress Core⌉⌊Frontend asset manager showing CSS and JavaScript grouped by plugin,
theme, or WordPress Core⌉[

Frontend asset manager showing CSS and JavaScript grouped by plugin, theme, or WordPress
Core

[⌊Create an unloading rule by URL match, device type, and condition⌉⌊Create an unloading
rule by URL match, device type, and condition⌉[

Create an unloading rule by URL match, device type, and condition

[⌊View and filter all CSS and JavaScript unloading rules from one screen⌉⌊View and
filter all CSS and JavaScript unloading rules from one screen⌉[

View and filter all CSS and JavaScript unloading rules from one screen

[⌊Organize related asset rules into groups and enable or disable them together⌉⌊
Organize related asset rules into groups and enable or disable them together⌉[

Organize related asset rules into groups and enable or disable them together

[⌊Review rule changes in the audit log⌉⌊Review rule changes in the audit log⌉[

Review rule changes in the audit log

[⌊Use the kill switch to bypass all rules without deleting them⌉⌊Use the kill switch
to bypass all rules without deleting them⌉[

Use the kill switch to bypass all rules without deleting them

## Installation

 1. In WordPress, go to **Plugins > Add New Plugin** and search for **Code Unloader**.
 2. Click **Install Now**, then **Activate**.
 3. Visit any frontend page while logged in as an administrator.
 4. Click **⚡ Assets** in the Admin Toolbar.
 5. Switch off an asset and choose where the unloading rule should apply.
 6. Test the page’s design and functionality after saving the rule.

## FAQ

### Does Code Unloader remove unused CSS inside a stylesheet?

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.

### Can I unload plugin CSS and JavaScript without writing code?

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.

### Can unloading an asset break a page?

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.

### Will my rules survive a cache flush or plugin reactivation?

Yes. Rules are stored in a custom database table and are not removed when plugin
caches are cleared or Code Unloader is reactivated.

### What is the kill switch?

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.

### What does the ?wpcu parameter do?

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.

### What does the ?nowpcu parameter do?

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.

### Does it support wildcard and regular-expression rules?

Yes. Choose an exact URL, wildcard pattern, or regular expression when creating 
a rule. Regular expressions are validated before saving.

### Can it unload inline script and style blocks?

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.

### Does Code Unloader replace a caching or minification plugin?

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.

### What PHP version do I need?

PHP 8.0 or higher. The plugin will not activate on PHP 7.x.

## Reviews

![](https://secure.gravatar.com/avatar/9004e94be13d00528013a61635b37a4a7843e7959c0c80c818150ecb46f70c30?
s=60&d=retro&r=g)

### 󠀁[Very Good – Increases PageSpeed](https://wordpress.org/support/topic/very-good-increases-pagespeed/)󠁿

 [nhowarth](https://profiles.wordpress.org/nhowarth/) अप्रैल 12, 2026 2 replies

I’ve just started using this plugin and have already unloaded 8 JavaScripts and 
two css files that were slowing down the loading of my front page, saving 634.2KB.
PageSpeed up from 96 to 99.

 [ Read all 1 review ](https://wordpress.org/support/plugin/code-unloader/reviews/)

## Contributors & Developers

“Code Unloader – Unload CSS & JavaScript Per Page” is open source software. The 
following people have contributed to this plugin.

Contributors

 *   [ Dalibor ](https://profiles.wordpress.org/dalibord/)

“Code Unloader – Unload CSS & JavaScript Per Page” has been translated into 1 locale.
Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/code-unloader/contributors)
for their contributions.

[Translate “Code Unloader – Unload CSS & JavaScript Per Page” into your language.](https://translate.wordpress.org/projects/wp-plugins/code-unloader)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/code-unloader/), check
out the [SVN repository](https://plugins.svn.wordpress.org/code-unloader/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/code-unloader/) 
by [RSS](https://plugins.trac.wordpress.org/log/code-unloader/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.4.11

 * Added: filter the Rules tab by URL. A new URL/Group switch sits at the top of
   the rules list; pick a URL to see only the rules stored for that page. The list
   opens on “All URLs”.
 * Changed: the rules toolbar now filters by URL or by Group, one at a time, instead
   of by Group only.
 * Changed: tested WordPress compatibility updated to 7.1 and plugin version bumped
   to 1.4.11.
 * Changed: reworded the AI Assets Scanner sidebar card.

#### 1.4.10

 * Fixed: after re-enabling one asset from the frontend panel, later disabled rows
   no longer inherit duplicate toggle listeners that could open the Disable Asset
   dialog instead of the re-enable scope chooser.

For the complete release history, see `changelog.txt` in the plugin folder.

## Meta

 *  Version **1.4.11**
 *  Last updated **15 hours ago**
 *  Active installations **10+**
 *  WordPress version ** 6.2 or higher **
 *  Tested up to **7.1**
 *  PHP version ** 8.0 or higher **
 *  Languages
 * [Croatian](https://hr.wordpress.org/plugins/code-unloader/) and [English (US)](https://wordpress.org/plugins/code-unloader/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/code-unloader)
 * Tags
 * [asset manager](https://mai.wordpress.org/plugins/tags/asset-manager/)[dequeue](https://mai.wordpress.org/plugins/tags/dequeue/)
   [Script Manager](https://mai.wordpress.org/plugins/tags/script-manager/)
 *  [Advanced View](https://mai.wordpress.org/plugins/code-unloader/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/code-unloader/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/code-unloader/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/code-unloader/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/code-unloader/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/code-unloader/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/code-unloader/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/code-unloader/reviews/)

## Contributors

 *   [ Dalibor ](https://profiles.wordpress.org/dalibord/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/code-unloader/)