Berq Used CSS – Remove Unused CSS Automatically

Changelog

1.0.17

  • Show the number of pages with cached used CSS in Cache Management

1.0.16

  • Generate used CSS synchronously during the triggering page load (blocking) instead of after the response, so the same visitor that triggers generation receives the trimmed CSS on that visit

1.0.15

  • Generate used CSS immediately after the triggering page load instead of via background queue and AJAX heartbeat polling
  • Remove the queue/heartbeat system and related admin “Queue Status” UI
  • Harden query-parameter exclusion so pages with query strings are never processed or cached, independent of caller

1.0.14

  • Update readme

1.0.13

  • Use wp_enqueue APIs for JS and CSS output instead of raw echo
  • Escape inline CSS output via wp_strip_all_tags
  • Fix unclosed output buffer – explicitly closed on shutdown
  • Fix protocol-relative URL path resolution in CSS extractor
  • Skip pages with query parameters from CSS generation
  • Invalidate used CSS on post save, theme/plugin update, Customizer, and Elementor changes
  • Add BerqWP cache compatibility hooks
  • Speed up heartbeat – first beat fires in 1s, base interval reduced to 3s

1.0.12

  • Update voku/simple_html_dom library version

1.0.11

  • WP Repo technical improvements

1.0.0

  • Initial release.
  • Automatic used CSS generation in the background for every page.
  • Three stylesheet loading modes: immediate, defer until interaction, remove.
  • Exclude specific URLs and CSS selectors.
  • Option to strip @font-face rules and background images.
  • Compatible with major caching plugins and BerqWP.
  • Automatic cache invalidation on post save, theme/plugin update, Customizer save, and Elementor changes.

Plugin Website
Visit website

Author
BerqWP
Version:
1.0.17
Last Updated
June 20, 2026
Active Installs
10
Requires
WordPress 5.0
Tested Up To
WordPress 7.0
Requires PHP
7.4

Share Post

Join our newsletter.

Get insights into what’s happening at ChangelogWP right in your inbox. We don’t believe in spam.