Why it matters
Downloading and parsing dead code wastes browser resources and delays page rendering.
How to fix it in WordPress
- Use a performance plugin that can 'Remove Unused CSS' (RUCSS).
- Enable the feature to generate page-specific CSS.
- If a specific plugin is causing the bloat but isn't needed on this page, use a script manager to disable it here.
Plugin-specific steps
Already using one of these plugins? Follow the exact steps for your setup.
WP Rocket
- 1Go to Settings → WP Rocket.
- 2Navigate to the File Optimization tab.
- 3Under CSS Files, enable 'Remove Unused CSS'.
- 4Save changes and wait for the CSS to be generated.
Perfmatters
- 1Go to Settings → Perfmatters.
- 2Enable 'Remove Unused CSS' under the Assets tab.
- 3If specific plugins are loading heavy CSS, go to the 'Script Manager' to disable them on pages where they aren't used.
How to verify the fix
- Check PageSpeed Insights and confirm the 'Reduce unused CSS' warning is gone.
Be careful
- Removing unused CSS is an aggressive optimization. Always check your site layout on mobile and desktop after enabling.