How to fix "Reduce unused CSS" in PageSpeed Insights
This warning means your pages download style rules they never use, which delays the moment visitors see your content. You fix it by loading less CSS: remove what you do not need, load styles only on the pages that use them, and test carefully afterwards.
"Reduce unused CSS" is a message in Google PageSpeed Insights (and in Lighthouse, the tool behind it). It tells you that your pages download style rules that the page does not actually use. It is a warning, not an error, and on most small business sites it comes from a theme, page builder or plugins that load all of their styling on every page.
What you see
In PageSpeed Insights you will find "Reduce unused CSS" under Opportunities or Diagnostics. It lists the CSS files involved and the size (in KiB) that could be saved. Common culprits are the theme stylesheet, page builder files, slider and form plugins, and icon or font libraries.
Your site usually looks perfectly normal. The cost is invisible: extra data has to arrive before the page can be shown.
Why it matters
CSS is render-blocking. The browser will not paint the page until it has downloaded and processed the stylesheets in the page head. The more unneeded CSS there is, the longer visitors wait, which can hurt First Contentful Paint and Largest Contentful Paint. Largest Contentful Paint is one of the Core Web Vitals. Slow pages lose visitors, especially on phones and slower connections, and speed is one of several signals Google uses.
Be realistic, though: fixing this one warning rarely transforms a score on its own. It is one piece of the speed picture, alongside images, hosting and scripts. See also render-blocking resources, which is closely related.
How to check if your site has it
Both methods below are free.
- Go to
pagespeed.web.dev, enter your address and run the test. Look at the mobile results and open "Reduce unused CSS" to see the files and sizes. - In Chrome, open the page, press
F12to open DevTools, then pressCtrl+Shift+P(Cmd+Shift+Pon a Mac), typeCoverageand choose "Show Coverage". Click the reload button in the Coverage panel. Each CSS file shows how much of it was used. Red bars mean unused.
Test more than one page type: the home page, a blog post, a product page and the contact page. Each uses different styles, so results differ.
One caution: these tools only look at what is used when the page first loads. Styles for a mobile menu, a popup, a cookie banner or a hover effect can show as unused even though they are needed. This is why you should never delete everything marked red.
How to fix it in general
Work from the safest option to the most technical one.
- Remove what you do not use. Delete old plugins, apps, themes and widgets that are switched off but still loading files. Fewer add-ons means less CSS.
- Load styles only where needed. A contact form plugin does not need to load its CSS on every blog post. Many themes and plugins let you turn off features you do not use.
- Use the built-in options of your builder or theme. Many page builders have a setting for loading only the CSS a page needs. Look in the performance or experimental settings.
- Use a tool that removes unused CSS automatically. Some speed plugins do this by generating a smaller stylesheet for each page. Always test the site afterwards, because these tools can miss styles that appear later.
- Ask a developer for the deeper fixes. These include splitting one big stylesheet into smaller ones, putting the small amount of CSS needed for the top of the page directly in the HTML, and using a build tool such as PurgeCSS to strip unused rules. Frameworks like Tailwind already do this when set up properly.
Also make sure your CSS is minified. That is a separate issue, covered in unminified CSS and JavaScript.
Common platforms
Where things are depends on your version and theme, so treat these as pointers.
- WordPress: Start by deactivating plugins you do not need. Speed plugins such as WP Rocket and Perfmatters include a "remove unused CSS" option, and Asset CleanUp lets you switch off a plugin's files on specific pages. See the WordPress guide.
- Elementor: Look in Elementor's settings for options about loading CSS and assets more efficiently (often under Features or Experiments), and avoid stacking several add-on packs. See the Elementor guide.
- WooCommerce: Shop styles often load on pages that are not shop pages. A plugin like Asset CleanUp or Perfmatters can disable them there, but leave them on for the cart and checkout.
- Shopify: Remove apps you no longer use and check the theme for leftover code from uninstalled apps. Some themes are much lighter than others, so theme choice matters.
- Wix and Squarespace: You have very little control over the CSS they load. Removing unused sections and apps helps a little, and the warning may not be fully fixable.
- Webflow: Delete unused classes and styles using the Style Manager's clean up tools, and avoid loading extra libraries through custom code.
How to confirm the fix worked
- Run PageSpeed Insights again on the same pages and compare the "Reduce unused CSS" size with before. Scores move around a little between runs, so test two or three times.
- Open the site on your phone and on a computer. Check the layout, fonts, buttons and images.
- Click through everything that appears on interaction: the mobile menu, popups, forms, the cookie banner, search, and (for shops) the cart and checkout.
- If you are logged in as admin, also check the site while logged out. Many problems only show to visitors.
If something looks broken, undo the last change. It is much easier to find the cause if you change one thing at a time.
How to stop it coming back
Unused CSS tends to grow slowly as plugins, apps and design tweaks pile up.
- Check PageSpeed Insights after you install a new plugin, app or theme.
- Review your plugins and apps every few months and remove what is no longer used.
- Keep one page builder and one set of add-ons rather than mixing several.
- Ask your developer to keep CSS lean when they add custom styling.
SiteMonday checks speed and Core Web Vitals every year in week 4, with a written report and a ranked fix list, so you can see whether this warning is near the top of your list or a minor one. Fixing it is up to you or your developer.
Step by step for your platform
- Reduce unused CSS on WordPress
- Reduce unused CSS on Elementor
- Reduce unused CSS on Shopify
- Reduce unused CSS on WooCommerce
- Reduce unused CSS on Wix
- Reduce unused CSS on Webflow
- Reduce unused CSS on Squarespace
Questions
Is "Reduce unused CSS" a serious problem?
Usually not on its own. It is a warning that can slow the first display of your page, but it is one of several speed factors, so look at it alongside images, scripts and hosting.
Can I get rid of this warning completely?
Often not, and you do not need to. Some CSS is only used after a click or on other pages, so a small amount will always be reported as unused.
Will removing unused CSS break my site?
It can if a tool or a person removes styles that appear later, such as menus, popups or the cart. Test every interactive part of the site after any change.
Do I need a developer to fix it?
Not always. Removing old plugins and switching on your builder or speed plugin options can be done by a site owner. Splitting stylesheets or using build tools needs a developer.
Why does it show different results on different pages?
Each page uses different styles, but many themes and plugins load all their CSS everywhere. Test the home page, a post, a product page and the contact page to see the full picture.
Does unused CSS affect my Google ranking?
Indirectly. It can slow loading, which affects Core Web Vitals, and speed is one of several signals Google uses. The effect of this warning alone is usually small.