Debloat – Remove Unused CSS, Optimize JS

Description

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.

Features:

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

Installation

  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.

Reviews

September 13, 2024
I used to pay and use Perfmatters to combine CSS, as I didn’t like the WP-Rocket implementation. But stopped using the former after finding Debloat to save some money. I’m not sure if it works as well as Perfmatters, but does do what I need it to do. It fixes all the PageSpeed insight recommendations about CSS, and my site loads very fast with it enabled for combining CSS, with WP Rocket handling everything else. I have a complex membership site with 60+ plugins and was able to get page load down to 0.9 – 1 second, even for logged-in users – and AffiliateWP still tracks cookies properly, and all else works. On the blog I also have, I got page load down to 200 – 300ms. Like other combine CSS plugins, I had to obviously add some exceptions to get some things to display properly, but that is pretty standard stuff. Anyways, this plugin is very good. I highly recommend it if you need to combine CSS.
September 10, 2024
A bit tricky to tune it up and get it running perfectly, but one you do, it can speed up your site more than any other minifying/optimizing plugin than I’ve ever seen before. The tricky balance is figuring out which JS and CSS you can get rid of or delay without negatively impacting the operation of the site. In some cases you need to get really familiar with your web browser’s developer tools so that you can see which scripts need to run. I also appreciate that this plugin doesn’t try to do too much. Some of the optimization plugins go way overboard with features and then seem to do none of them particularly well while simultaneously spamming your Wordpress dashboard with “Upgrade to Pro” messages. This one doesn’t do that at all.
August 22, 2024 1 reply
WP Rocket already does a lot to improve performance, but the bloat of WPBakery or Elementor remains. Here Debloat delivers an enormous increase in speed even with standard settings. In fact, 5 stars are not enough here. Thanks for the great plugin.
July 15, 2024
After experimenting with so many plugins – Autoptimize, Rapid Load, Fast Velocity, Airlift, seraphinite accelerator, and many more, only Debloat plugin actually helped me with css and js minification in the right way and I noticed great results in various site speed tests. I casually searched for css minify and after scrolling a bit, I spotted Debloat plugin and it had some great convincing reviews. I went for and it actually helped with the speed. I am using it along with cache and CDN which is provided by my hosting (Lyrical Host).
June 11, 2024
I’ve used many plugins in hope of increasing website’s speed. But I never got the desired result. Some were good and many were overhyped. Came across this plugin, was initially reluctant because it barely gets any fuzz or in any top plugins list. The reviews convinced me to give it a try, and bro!! the result is massive. With the right tweaks here and there, I was mind blown. This is the best plugin for speed optimization and passing core web vitals. I wish many know more about this amazing plugin. This is the type of plugin that should be getting the hype not the overpriced ones out there. Kudos to the developer! Great job 👏🏽
May 22, 2024
This is without a doubt the best plugin. Even for me, who doesn’t have much knowledge, it was easy to configure following the plugin’s instructions. I really managed to make my website much better after I started using debloat. I recommend!
Read all 37 reviews

Contributors & Developers

“Debloat – Remove Unused CSS, Optimize JS” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.2.8

  • Added: Support for a new lazyload from ThemeSphere.
  • Fixed: A harmless PHP Warning.

1.2.7

  • Improved: Elementor integration delay load rules are relaxed to exclude the new lazyload.

1.2.4

  • Fixed: Handling of empty or malformed script tags.
  • Fixed: WPBakery and WooCommerce conflict with delay JS on flexslider.
  • Fixed: A rare PHP warning on clearing the cache, including from cache plugins.

1.2.3

  • Added: Support for media queries when unused CSS is removed.
  • Fixed: PHP warnings on PHP 8.2.
  • Fixed: Parsing complex CSS selectors with commas and several other complex rules.
  • Updated: Sabberworm CSS Parser to 8.4 with patches.

1.2.1

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

1.2.0

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

1.1.9

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

1.1.7

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

1.1.6

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

1.1.5

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

1.1.4

  • Fixed: Some PHP notices under certain conditions.

1.1.3

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

1.1.2

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

1.1.1

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

1.1.0

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

1.0.0

  • Initial release.