Performance · JavaScript and CSS
Page loads unused CSS
This page loads a 130KB stylesheet whose rules match nothing on the page. Every byte is downloaded and parsed for nothing.
How this page is built
The head of this page links unused.css, a minified stylesheet with 1,200 rules. None of its selectors match any element on the page, so all of it is unused.
Why it matters
Every stylesheet has to be downloaded and parsed, and most also block rendering while they load. When most of a stylesheet is never used, that time is wasted. This page loads its stylesheet without blocking rendering, so the only problem is the unused rules.
Unused CSS usually comes from large frameworks, themes that style every possible component, or styles for parts of the site that were removed long ago.
How to check it
Run Lighthouse or PageSpeed Insights on the page and look at the diagnostics. Crawl tools that run Lighthouse for each page, or that measure page resources, report the same finding across the site. Lighthouse lists stylesheets with a lot of unused CSS. The Coverage panel in Chrome’s developer tools shows which rules are used.
How to fix it
Remove rules that are no longer used, split CSS by page or component, and load only what each page needs. Tools such as PurgeCSS can strip unused rules at build time.