NeovaGelişmiş SEO Platformu

Stil sayfası kullanılmayan CSS için Lighthouse sınırını aşıyor

Neova'da Lighthouse açıkken çalışır (bir ayardır): Mac'inizdeki Chrome'u kullanır.

Kural son kez 17 Ekim 2026'da incelendi · Rehber 21 Eylül 2026'da güncellendi

Bir stil sayfası, sayfanın yükleme sırasında kullanmadığı kurallar içeriyor; bu yüzden ziyaretçiler CSS'i boşuna indirip ayrıştırıyor. Bu bir Lighthouse sınırıdır. Hiçbir arama motoru bunu belirlemez.

Neler yapabilirsiniz

Stil sayfasından ölü kuralları kaldırın ya da her sayfa grubunun yalnızca kullandığı CSS'i yüklemesi için onu bölün.

Neova bunu nasıl bulur

Neova her sayfa türünden bir örnek üzerinde hız testi çalıştırır.

Neova bunu neden işaretliyor

  • Ziyaretçiler sayfanın kullanmadığı CSS kurallarını indirip ayrıştırır; CSS de genellikle yüklenene kadar render'ı engeller.
  • Olağan sebep büyük ortak stil dosyalarıdır: tek bir dosya sitedeki her şablonun stillerini taşır.
  • Bu bir Lighthouse sınırıdır; hiçbir arama motoru bunu belirlemez.

Kaynaklar

Yazdığı ticket

Bu bölüm şimdilik İngilizce.

PE-023 · Stylesheet Is Over the Lighthouse Line for Unused CSS

How to Check the Fix: 1. Run the check again in Neova
2. Spot-check sample URLs across affected templates
3. Record the re-check date and period label next to the baseline

Neova writes this ticket for every affected page group and sends it to Jira, Linear, Asana and the rest, after you approve it.

Tam rehber

Bu bölüm şimdilik İngilizce.

TL;DR, This audit fires when a stylesheet ships far more rules than the page actually uses, so the browser downloads, parses, and builds a style tree for selectors that never match a single element. Because CSS is render-blocking by default, that dead weight delays first paint and Largest Contentful Paint for zero visual payoff.

What This Check Flags

Lighthouse reports the number of bytes in each stylesheet that the current page never applies. A framework like Bootstrap or a bloated theme stylesheet might ship 300 KB of rules while a given landing page touches maybe 15 KB of them. Every byte still has to arrive, get parsed into the CSSOM, and be matched against the DOM before the browser will paint anything, so unused CSS is a tax paid up front, on the critical path, every single load.

A Real Example, and the Fix

A marketing page pulls the entire framework build in the <head>:

<link rel="stylesheet" href="https://example.com/css/bootstrap.min.css">  <!-- 190 KB, ~9,000 selectors -->

The page uses a grid, a couple of buttons, and one card. The other 8,900 selectors, carousels, modals, tooltips, badges you never render, still block paint. The fix is to generate a stylesheet scoped to what the page really uses, then inline the above-the-fold slice:

# Build a CSS file containing only selectors this page actually matches
npx purgecss --css bootstrap.min.css --content index.html --output ./dist/

# Result: ~14 KB instead of 190 KB, no visual change

Then inline that critical slice in the <head> and load the rest asynchronously so it never blocks the first paint.

Coverage: How Much Are You Really Using?

The DevTools Coverage tab gives you a hard number per file. These ranges are what teams typically see before cleanup, use them to judge whether a stylesheet is worth splitting or just deleting.

Source Typical Unused CSS Why It Happens First Move
Full framework build (Bootstrap, Foundation) 85 to 95% Ships every component; you use a handful PurgeCSS against real templates
Page-builder / theme bundle 60 to 80% One global stylesheet for every layout Split per template, load conditionally
Design-system utility CSS (untree-shaken) 40 to 70% All utilities emitted, few applied Enable JIT / content scanning
Hand-written app CSS 10 to 30% Old rules for removed features Coverage tab, then delete dead blocks

How to Detect It

  1. Lighthouse / PageSpeed Insights: run the audit and open "Reduce unused CSS" under Diagnostics. It lists each stylesheet with the wasted bytes and the potential load savings.
  2. DevTools Coverage tab: open DevTools, press Cmd/Ctrl+Shift+P, run "Show Coverage," reload the page, and read the red/green bar per file. Red is CSS that never matched, the percentage is your unused figure. Interact with the page (open menus, tabs) so you do not flag rules that only apply after a click.
  3. Build-time report: run PurgeCSS or your framework's purge step in "rejected" mode to get a list of exactly which selectors were dropped, so you can confirm nothing dynamic got cut.

How to Fix It

  1. Purge dead selectors at build time. Point PurgeCSS (or Tailwind's content scanner) at every template, component, and JS file that can inject class names, so only matched rules survive.
  2. Split CSS per template. A checkout page should not load blog styles. Ship route-scoped stylesheets instead of one global monolith.
  3. Inline critical CSS, defer the rest. Put the above-the-fold rules directly in the <head> and load the remainder with a non-blocking pattern. The critical CSS approach is the standard play.
  4. Safelist dynamic classes. If class names are built in JavaScript at runtime, add them to a safelist so the purge step does not strip styles you still need.
  5. Watch third-party widgets. Chat, consent, and A/B tools inject their own stylesheets. You often cannot purge them, but you can load them after paint.

Why This Is Not the Same as Unused JavaScript

Unused CSS and unused JS both waste bytes, but they hurt in different ways. Unused CSS is render-blocking, the browser refuses to paint until it has parsed the stylesheet, so the cost lands on first paint and LCP. Unused JavaScript costs mostly CPU (parse, compile, execute) and hits interactivity. CSS also cannot be "tree-shaken" the way modules can; you prune it by matching selectors against real markup, not by following import graphs. Because CSS blocks rendering, trimming it often buys a faster visible page than trimming JS of the same size. Both sit on the critical path alongside render-blocking resources, which is why the Eliminate render-blocking resources audit usually lights up at the same time.

FAQ

Will Removing Unused CSS Break My Page?

Only if the purge step misses class names that appear at runtime. Test after purging, safelist anything generated in JavaScript, and keep the "rejected selectors" report so you can spot over-eager cuts before they ship.

Is Unused CSS the Same as Unminified CSS?

No. Minification removes whitespace and comments from rules you keep; purging removes rules you never use. They stack, minify CSS the survivors after you have purged the dead ones.

How Much Does Unused CSS Actually Cost Me?

The real cost is on the critical path: parse time plus a delayed first paint, not just download size. Even gzipped, a large stylesheet must be fully parsed into the CSSOM before paint, so trimming it helps LCP more than the raw byte count suggests.

Can I Just Lazy-Load All My CSS?

No, the above-the-fold styles must be present at first paint or you get a flash of unstyled content. Inline the critical slice and defer only the rest.

Does a Page Builder Make This Worse?

Usually, yes. Builders ship one global stylesheet covering every possible module, so most pages use a small fraction of it. Per-template splitting is the highest-leverage fix on builder-driven sites.

Bunu Kendi Sitenizde Bulun

Neova bu kontrolü ve diğer tüm kontrolleri her taramada çalıştırır, ardından düzeltmeyi ekibiniz için bir ticket olarak yazar.

  • Mac, Windows ve Linux için masaüstü uygulaması
  • Her biri kaynağıyla birlikte 696 kontrolün tamamı
  • Search Console ve Analytics 4, salt okunur bağlı
  • Jira, Linear ve Asana'ya ticket'lar

Neova'yı indirin Desktop Free planı ya da 14 gün ücretsiz Solo, kart gerekmez.

Performans kategorisindeki tüm kontroller · Rehberler · Kontrol kütüphanesi

Yazan: Neova Labs · Kontrol kütüphanesine dön