Core Web Vitals for Static Sites: What Actually Matters
Static sites still fail Core Web Vitals. Learn which metrics matter, how to measure them, and the few fixes that produce the biggest real-world gains.
Static sites have a reputation for speed, and mostly they earn it. There is no database query on each request, no application server to saturate, and often no client-side framework to hydrate. But a static site can still fail Core Web Vitals, because the metrics measure what a real person experiences, not how the HTML was produced.
This guide focuses on the handful of decisions that move the needle. If you want the broader crawl-and-index checklist, start with the technical SEO audit.
The three metrics, without the mystique
Core Web Vitals currently boil down to three signals:
- Largest Contentful Paint (LCP): how long until the main content is visible.
- Interaction to Next Paint (INP): how quickly the page responds to input.
- Cumulative Layout Shift (CLS): how much the page moves while loading.
Each maps to a different failure. LCP is usually a resource-loading problem. INP is usually a JavaScript problem. CLS is usually a sizing problem. Diagnose the metric before you touch the code.
LCP: find the actual largest element
Open a representative page in Chrome DevTools, run a performance trace, and look at the LCP element. On article pages it is often the hero image or the h1. On landing pages it is frequently a background image that was invisible in the design review.
The common fixes are unglamorous:
- Serve the hero image at the size it renders.
- Use AVIF or WebP with a sensible fallback.
- Add
widthandheightattributes. - Load it eagerly and give it
fetchpriority="high". - Avoid lazy-loading anything above the fold.
A 400 KB hero image on a mid-range phone can cost more than every other optimization combined. In Astro, use the built-in image component for local assets so dimensions and formats are handled at build time.
INP: ship less JavaScript
A static site with zero JavaScript has an excellent INP by default. If your page hydrates a client framework, the story changes. Long tasks on the main thread delay visual feedback, and users notice.
Ask two questions about every interactive component:
- Does it need to ship JavaScript at all?
- Does it need to hydrate immediately?
Native HTML handles more than teams remember. Accordions can use <details>. Navigation can use links. Form validation can start with attributes. For the rest, prefer small islands over a fully hydrated page.
CLS: reserve space before content arrives
Layout shift is usually caused by content that has no reserved dimensions: images, ads, embeds, cookie banners, and late-loading fonts. The fix is to define the box before the content lands.
- Set explicit dimensions on images and videos.
- Reserve height for embeds and third-party widgets.
- Use
font-display: swapand a metrics-compatible fallback font. - Insert banners outside the document flow or reserve their space from the start.
CLS is the easiest metric to regress because a new marketing widget can undo months of work. Add a visual regression check to your deployment pipeline if layout stability matters to the business.
Measure field data, not just the lab
Lighthouse is useful for diagnosis, but it runs on a fast machine with a clean cache. Your visitors do not. Use the Chrome UX Report or Search Console’s Core Web Vitals report to see what real sessions look like, segmented by device and template.
A practical workflow:
| Step | Tool | Question |
|---|---|---|
| 1 | Search Console | Which templates fail in the field? |
| 2 | Chrome UX Report | How bad is it, by device? |
| 3 | DevTools trace | What is the bottleneck? |
| 4 | Lighthouse CI | Did the fix regress anything? |
Do not optimize a page that already passes while another template drags down the site average.
A minimal performance budget
Budgets turn vague ambitions into build failures. A reasonable starting point for a content site:
- HTML: under 100 KB compressed.
- CSS: under 50 KB compressed.
- JavaScript: under 100 KB compressed, ideally far less.
- Hero image: under 200 KB at the rendered size.
- Fonts: two weights maximum, self-hosted and subset.
These are not universal laws. They are guardrails that make regressions visible in review instead of six weeks later in a dashboard.
What static generation buys you
Static output eliminates time-to-first-byte variance from application servers and makes caching trivial. That is a real advantage. It does not eliminate the cost of a 2 MB image, a blocking analytics script, or a layout that jumps when a font loads.
Treat the static build as a strong foundation, then finish the job in the browser. The sites that win Core Web Vitals are rarely the ones with the most sophisticated stack; they are the ones that ship less and reserve space for what remains.
Frequently asked questions
Can a static site fail Core Web Vitals?
Yes. Static HTML removes server latency, but large images, render-blocking CSS, web fonts, and third-party scripts can still hurt LCP and INP. The delivery model helps; it does not guarantee good field metrics.
Which Core Web Vital should I improve first?
Start with Largest Contentful Paint because it usually has the clearest fix: compress and correctly size the hero image, then remove anything that delays its discovery. Interaction to Next Paint comes next if your pages ship JavaScript.
Do Core Web Vitals directly affect rankings?
They are a confirmed ranking signal, but a relatively small one compared with relevance and content quality. Treat them as a tiebreaker and a conversion lever rather than a shortcut to higher rankings.