Skip to content
Nazmul Nikhil
Menu

Minify CSS in PageSpeed Insights: Shrink Your Stylesheets

PageSpeed flags CSS files that still contain spaces and comments. Minifying is an easy, safe win. Here's how to turn it on on every major platform.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
Minify CSS in PageSpeed Insights: Shrink Your Stylesheets
Photo: Michael Dziedzic on Unsplash

In short

"Minify CSS" lists stylesheets that still contain whitespace, comments and long formatting that browsers don't need, with estimated savings. Turn on CSS minification in your build tool or optimization plugin. Savings are usually small but free.

One of the easiest fixes in the report.

How to fix it

WordPress: caching and optimization plugins minify CSS; test after enabling. Shopify: theme CSS is served compressed; flagged files usually come from apps or custom uploads. Webflow: Site settings > Publishing > minify CSS. Wix: handled by the platform. Custom builds: production builds in Vite, webpack and similar tools minify CSS by default; make sure the server serves the built files.

If you also have "Reduce unused CSS," fix that first; it saves far more.

The Semrush article on unminified files in this blog covers the same issue from Semrush's side.

This guide isn't affiliated with or endorsed by Google.

Sources and references

TAGSPageSpeed InsightsMinify cssMinify css pagespeedUnminified css
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Core Web Vitals

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Page Speed & Core Web Vitals posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com