Zum Inhalt springen
smugo Logo
Back to the blog
Web development
2025-12-30 11 min

Core Web Vitals Optimization: Step-by-Step Guide 2026

TL;DR

Core Web Vitals have been a Google ranking factor since 2021. The three metrics LCP (load time), CLS (layout shift), and INP (interactivity) determine whether Google rates your page as "good". With 8 concrete measures, most websites reach green scores within 2–4 weeks.

What Are Core Web Vitals and Why Do They Matter?

Core Web Vitals (CWV) are three metrics Google uses to evaluate the user experience of a website. Since the Page Experience Update in 2021, they directly influence Google rankings. Websites with poor CWV scores lose visibility – regardless of content quality.

MetricWhat It MeasuresGoodNeeds ImprovementPoor
LCP (Largest Contentful Paint)Load time of the largest visible element< 2.5s2.5s – 4s> 4s
CLS (Cumulative Layout Shift)Unexpected layout shifts< 0.10.1 – 0.25> 0.25
INP (Interaction to Next Paint)Response time to user interactions< 200ms200ms – 500ms> 500ms

INP replaced FID (First Input Delay) in March 2024. INP measures all interactions during a session, not just the first one – making it significantly stricter.

Improving LCP: The 4 Most Important Measures

1. Serve Hero Images as AVIF/WebP

The LCP element is usually the hero image or H1 heading. For images: convert PNG/JPG to AVIF (60–80% smaller) and WebP (30–50% smaller). Use `<picture>` elements for progressive delivery.

In Next.js: Use the `<Image>` component with `priority` for the LCP element. It automatically optimizes format, size, and lazy loading.

2. Preload Critical Resources

Add `<link rel="preload">` for the LCP image and critical fonts in the `<head>`. The browser loads these resources immediately without waiting for HTML parsing.

3. Reduce Server Response Time (TTFB)

A slow server delays everything. Target: TTFB below 800ms. Measures: use a CDN (Cloudflare, Vercel Edge), enable server caching, optimize database queries.

4. Eliminate Render-Blocking Resources

CSS and JavaScript in the `<head>` block rendering. Solution: inline critical CSS, load non-critical CSS with `media="print"`, execute JavaScript with `defer` or `async`.

Improving CLS: Stop Layout Shifts

  • Always specify width and height for images and videos – prevents placeholder jumps
  • Reserve space for ads and embeds with a fixed height (aspect-ratio CSS)
  • Stabilize web fonts with font-display: swap and preload
  • Place dynamically injected content (banners, cookie notices) at the bottom of the screen
  • Animate only with transform and opacity – never with top/left/width/height

Improving INP: Optimize Interactivity

INP measures how quickly the page responds to clicks, taps, and keyboard input. Common causes of poor INP scores:

  • Too much JavaScript on the main thread (Long Tasks > 50ms)
  • Heavy event handlers without debouncing
  • Third-party scripts (chat widgets, analytics) blocking the main thread
  • React/Next.js: unnecessary re-renders due to missing memoization

Use the Chrome DevTools Performance tab to identify Long Tasks. Anything over 50ms on the main thread is an INP risk.

Measuring Core Web Vitals: The Right Tools

ToolTypeStrength
PageSpeed InsightsLab + Field DataQuickest overview, Google data
Chrome DevTools (Lighthouse)Lab DataDetailed local diagnosis
Google Search ConsoleField Data (real)Real user data from Chrome
WebPageTestLab DataDeepest analysis, waterfall diagram
Vercel AnalyticsField DataIdeal for Next.js projects

Lab Data (PageSpeed Insights, Lighthouse) and Field Data (Search Console) can differ significantly. Field Data reflects real user experiences – that is what Google uses for ranking.

Our Conclusion

Core Web Vitals are not a one-time project but require ongoing maintenance. The biggest levers: image optimization (AVIF/WebP), preloading critical resources, and reducing JavaScript. With Next.js and Vercel, most projects achieve green CWV scores with minimal effort – the platform handles much of the optimization automatically.

Last updated: 2026-01-27

FAQ

Frequently asked questions

How much do Core Web Vitals influence Google rankings?

Core Web Vitals are a ranking factor, but not a dominant one. Google weights content relevance and backlinks more heavily. CWV act as a tiebreaker: when content quality is similar, the faster page wins. For competitive keywords, however, the difference can be significant.

How long does it take to improve Core Web Vitals?

Technical measures (image optimization, preloading) show results in Lab Data immediately. Field Data in Google Search Console updates every 28 days – so you will see improvements in rankings only after 4–6 weeks.

My LCP score is good in the lab but poor in Search Console – why?

Lab Data simulates a controlled environment (fast connection, powerful computer). Field Data reflects real users – often on mobile devices with slower connections. Optimize primarily for Field Data.

Which CMS platform has the best Core Web Vitals?

Next.js with Vercel most easily achieves green CWV scores thanks to automatic image optimization, edge caching, and code splitting. WordPress can also achieve good scores with the right hosting and plugins (WP Rocket, Imagify), but requires more manual configuration.

What is the difference between FID and INP?

FID (First Input Delay) only measured the first interaction on a page. INP (Interaction to Next Paint) measures all interactions during a session and takes the worst value. INP is therefore significantly stricter and more representative of the overall user experience.

Questions about this?

Message me directly – I'll get back to you personally and without any fuss.

Message me on WhatsApp
Contact: +49 1590 42 33 200