Code Unloader

plugin banner

Per-page JavaScript & CSS asset management. Surgically dequeue scripts and styles on any page using exact, wildcard, or regex URL rules.

Author:Dalibor (profile at wordpress.org)
WordPress version required:6.2
WordPress version tested:6.9.4
Plugin version:1.4.1
Added to WordPress repository:24-03-2026
Last updated:24-03-2026
Rating, %:0
Rated by:0
Plugin URI:https://wpservice.pro/
Total downloads:159
plugin download
Click to start download

Official plugin homepage:
https://wpservice.pro/our-products/code-unloader/

Code Unloader gives site administrators surgical control over which JavaScript and CSS files are loaded on each individual page or post.

Key Features:

  • Disable any registered JS or CSS file on any page or post
  • Exact URL, wildcard pattern (/shop/*), and full regex matching
  • Rules survive cache flushes and plugin reactivations
  • Assets grouped by plugin, theme, or WordPress Core in the panel
  • Per-page frontend panel accessible from the Admin Toolbar
  • Access panel on any page via ?wpcu URL parameter
  • Global admin screen listing all rules across the site
  • One-click kill switch to instantly restore all assets sitewide
  • Bypass all rules for a single request via ?nowpcu URL parameter
  • Conditional rules (logged-in users, WooCommerce pages, shortcodes, post types)
  • Device-type rules (desktop-only or mobile-only)
  • Inline script/style blocking for assets without registered handles
  • Inline block detection — see every inline <script> and <style> on the page
  • Rule groups for managing sets of rules as a unit
  • Full audit log of all changes
  • JSON import/export
  • Zero performance overhead on pages with no matching rules

Compatible with: WP Rocket, W3 Total Cache, LiteSpeed Cache, WP Super Cache, WooCommerce, Elementor, Divi, WP Bakery, basically everything WP related.

Requirements: PHP 8.0 or higher is required. The plugin uses modern PHP features (union types, match expressions, named functions) that are not available in PHP 7.x.

Note: It’s recommended to test changes on a staging environment before applying them to a live site. Unloading the wrong assets can break your site’s appearance or functionality.


Screenshots
FAQ
ChangeLog