Skip to main content
sus.botdocs
  • SEO
  • AI
  • QA
  • Privacy
  • Accessibility
  • Security
  1. Docs
  2. SEO
  3. Page speed and Core Web Vitals
  4. Component styles are shipped many times over on one page

SEO finding

Component styles are shipped many times over on one page

SEO Warning Severity: Medium

Part of the audit Page speed and Core Web Vitals. Finding id: seo.cssComponentDuplication.

What it costs you

The browser fetches and parses the same rules several times, and the page appears later.

What to do

Let the build combine component styles per page and remove copies of the same component's styles.

What it checks

  • Files that delay showing the page

How to fix it

Combine component styles at build time

  1. Check whether the same component is bundled into several chunks, each with its own copy of its styles.
  2. Configure the build to extract shared component styles into one file per page or one shared file.

How to check: Run this rule again: no duplicates, fewer stylesheets per page.

Thresholds

Thresholds for Component styles are shipped many times over on one page
NameDefaultMeaning
max_stylesheets15Report a page that loads more separate stylesheets than this. A starting value, not taken from a source.
  • All audits
  • About sus.bot
  • Open the app
  • Contact support