Critical CSS and Remove Unused CSS work by leaving CSS out, and some CSS must never be left out: styles for menus that open on click, checkout forms, sliders or cookie banners. CSS compatibility safeguards are built-in rules that protect these parts automatically, based on your theme, your active plugins and your hosting setup. They work in the background and need no setup, but you can review them and pause them per source.
Available in: Powered Cache Premium, with an active license
Where to find it: Powered Cache → File Optimization → CSS Optimization Status → Applied safeguards
Requires: Critical CSS or Remove Unused CSS turned on.
What the safeguards do #
Each safeguard adds rules of one or more of these kinds:
| Rule type | Effect | Used by |
|---|---|---|
| Safe selectors | Selectors added to the Unused CSS Safelist, so their styles are always kept. Examples: .sub-menu, .is-open, .woocommerce-, .elementor-, .swiper-, .cmplz-. | Remove Unused CSS |
| Excluded stylesheets | Stylesheets added to Unused CSS Excluded Files, so they stay on the page unchanged. Examples: page builder CSS files in uploads, slider stylesheets, Dashicons, the admin bar. | Remove Unused CSS |
| Critical CSS exclusions | Stylesheets left out of Critical CSS generation: wp-admin/, print.css, Dashicons and the admin bar. | Critical CSS |
| Paused service | Stops a service completely when a plugin is known to conflict with it. Autoptimize pauses Critical CSS. | Critical CSS or Remove Unused CSS |
The rules are added when CSS is generated and when pages are served. They do not change the text you see in your own settings fields.
Where the rules come from #
- Global defaults: always active and cannot be paused. They cover WordPress blocks, navigation menus, common interface states, and the class prefixes of popular builders, forms, sliders and consent tools.
- Plugins: rules for about 100 plugins, applied while that plugin is active. They include WooCommerce and its payment gateways, page builders (Elementor, Beaver Builder, Oxygen, Bricks, Breakdance, GenerateBlocks, Kadence, Spectra, Stackable, WPBakery), form, membership, learning, event, SEO, multilingual and consent plugins, sliders, and other optimization or cache plugins.
- Themes: rules for Divi, Avada, Flatsome, Woodmart, Astra, GeneratePress, Blocksy, Kadence, OceanWP, Hello Elementor, Storefront, Porto, Salient and Enfold. A child theme gets the rules of its parent theme.
- Environment: rules applied when Powered Cache detects Cloudflare in front of your site or a LiteSpeed web server.
New in 4.0: CSS compatibility safeguards, and the controls to review and pause them, were added with the new Critical CSS and Remove Unused CSS workflow.
Review the applied safeguards #
- Go to Powered Cache → File Optimization.
- In CSS Optimization Status, find the Applied safeguards box. The line under Automatic compatibility protections are active shows how many rules are active and from which sources.
- Check the per-service items next to it. Each shows the number of rules for that service, or Paused by … when a source stopped the service.
- Each service card also shows a line such as 12 compatibility rule(s) active from Global defaults, Astra.
A service paused by a safeguard shows Unavailable on its card, with a message like Disabled to avoid conflicts with Autoptimize.
Pause or resume a source #
You can pause the rules of one plugin, theme or environment without changing anything else:
- In the Applied safeguards box, click Pause next to the source. Powered Cache confirms with Compatibility safeguard paused. and marks the source as Paused.
- Click Regenerate on the Critical CSS and Used CSS cards. Pausing does not start a new run by itself, so existing CSS keeps the old rules until you regenerate.
- Test the pages that use that plugin or theme.
- To undo, click Resume and regenerate again.
The change is saved immediately. Paused sources are stored in the hidden Paused CSS Compatibility Sources setting (css_optimization_disabled_sources) as keys such as plugin:woocommerce/woocommerce.php, theme:Astra or environment:cdn:cloudflare. Global defaults cannot be paused.
When to pause a source #
Keep the safeguards on unless you have a clear reason. Safeguards err on the side of keeping CSS, which is safe but makes the used CSS larger. Pausing can make sense when:
- the plugin is active but not used on your public pages, so its safe selectors only add weight,
- a source paused a whole service, for example Autoptimize pausing Critical CSS, and you have turned off the conflicting CSS feature in that plugin,
- support asks you to test without a specific source.
If something breaks after pausing, resume the source and regenerate. See Broken layout after optimization and CSS generation issues.
JavaScript safeguards #
Powered Cache (free) applies a separate set of built-in rules to Delay JavaScript, for example for payment, form and consent scripts. Those rules are not listed in this box and cannot be paused.
For developers #
The rules are bundled with the plugin. Filters: powered_cache_css_optimization_disabled_sources (paused source keys), powered_cache_css_optimization_rules_registry (change the rule set), powered_cache_css_optimization_active_plugins and powered_cache_css_optimization_active_environments. See the hooks reference.