Debloat – Remove Unused CSS, Optimize JS


A plugin for Advanced Users to Optimize CSS Delivery, Remove Unused CSS, Optimize Javascript Delivery with defer or delay load JS.
The perfect toolkit for improving your Core Web Vitals and overall website performance.

WARNING: It’s a powerful speed optimization plugin that’s meant for power users who know what they’re doing.


  • Optimize CSS: Fix Render-Blocking.
  • Minify and Inline CSS.
  • Remove Unused CSS (Advanced).
  • Optimize JS: Fix Render-Blocking with defer.
  • Delay Load some JS until user interaction.
  • Adds resource hints for faster Google Fonts.
  • Built-in optimizations for Elementor (free version).
  • Built-in optimizations for WPBakery Page Builder.
  • Compatible with all themes and plugins.
  • Supports all modern browsers (no IE11 support).
  • Optimized code benchmarked for performance.
  • Built-in cache for processing.
  • Compatible with cache plugins (disable their JS and CSS optimizations).
  • API and hooks for theme & plugin authors.


  1. Upload/Install and activate the plugin.
  2. Go to Settings > Debloat Optimize, and configure per your requirement.
  3. Clear all caches from any cache plugin you may have active.


30 mai 2023
This plugin was the only one that solved my dissatisfaction with litespeed and perfmatters UCSS. Developer notice: the differential of this plugin is the great integration with LiteSpeed ​​and Elementor. I finally got to the best of all worlds in UCSS.
8 mars 2023
Definitely the best I've come across to date! Delay until interaction - Is there a way to skip an inline javascript with a particular id without editing the plugin in files directly? i.e don't add 'data-debloat-delay="1"' to script with id="rs-initialisation-scripts" Thank you
21 février 2023
This plugin is savage! With the tons of paid optimization plugins out there, Debloat simply destroys them. Thank you for your hard work and amazing plugin!
10 février 2023 3 réponses
I install this plugin to remove unused CSS on my client's WooCommerce website. I pair it with LiteSpeed for optimal results. Furthermore, this plugin helps me optimize my JavaScript, making it the ideal solution for my needs.
Lire les 22 avis

Contributeurs/contributrices & développeurs/développeuses

« Debloat – Remove Unused CSS, Optimize JS » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.




  • Fixed: A few minor PHP warnings / notices.
  • Improved: Elementor admin bar drop downs should render in delay JS.


  • Fixed: Error when malformed link tags with missing href.


  • Fixed: Google Fonts inline feature when additional parameters present in URL.
  • Improved: Strip unnecessary rel=stylesheet in inline styles.


  • Added: Option to defer inline scripts – useful if some dependent inline scripts not registered using WordPress enqueues.
  • Fixed: Defer inline scripts with jQuery if jquery-core is deferred.


  • Fixed: Delay/defer only replacing one instance with duplicated tags of the same URL and id.


  • Added: New filter debloat/should_process.
  • Improved: Skip converting already qualified URLs.
  • Bumped required PHP version to 7.1+.


  • Fixed: Some PHP notices under certain conditions.


  • Added: Maximum user interaction wait time for JS delay load feature.


  • Fixed: Disable processing in feeds and on missing HTML tag.


  • Fixed: Fatal error for Sabberworm lib and resolved/matched AMP plugin dependency.


  • Added: WP CLI Commands to empty caches.
  • Added: Google Fonts optimizations such as font-display: swap.
  • Added: Option to inline Google Fonts CSS.


  • Initial release.