Перейти к содержимому
Skip to content
← All articles

Core Web Vitals: The Complete Guide

What Are Core Web Vitals

PageSpeed анализ are a set of metrics from Google that measure real user experience on a website. Since 2021, they've been a ranking factor in Google Search. Three main metrics assess loading speed, interactivity, and visual stability.

LCP — Largest Contentful Paint

LCP measures the loading time of the largest visible content element on the first screen. This could be an image, video, text block, or CSS background image.

Target Values

How to Improve LCP

  1. Optimize the LCP resource
    • Compress images, use WebP/AVIF
    • Set proper dimensions (width, height)
    • Preload: <link rel="preload" as="image" href="hero.webp">
    • Use fetchpriority="high" on the LCP element
  2. Speed up server response
    • TTFB should be under 800ms
    • Use a CDN
    • Enable HTTP/2 or HTTP/3
    • Optimize server logic and database queries
  3. Eliminate render-blocking resources
    • CSS: inline critical CSS, defer the rest
    • JS: defer or async attributes
    • Fonts: font-display: swap or optional
  4. Don't use lazy loading for the LCP image — it slows down its loading

INP — Interaction to Next Paint

INP replaced FID in March 2024. It measures the delay between a user action (click, tap, key press) and the visual page update. INP accounts for all interactions during a visit, not just the first one.

Target Values

How to Improve INP

  1. Break up Long Tasks
    • Split JavaScript into smaller chunks
    • Use requestIdleCallback for non-urgent operations
    • Move heavy computations to Web Workers
  2. Reduce JavaScript size
    • Code splitting and lazy loading modules
    • Tree shaking to remove unused code
    • Minify and compress (gzip/brotli)
  3. Optimize the DOM
    • Avoid DOM trees larger than 1500 elements
    • Use virtualization for long lists
    • Minimize layout thrashing (DOM read-write cycles)
  4. Debounce and throttle — for frequent events (scroll, resize, input)

CLS — Cumulative Layout Shift

CLS measures visual stability — how much page elements shift during loading. Each unexpected element shift contributes to the total CLS score.

Target Values

How to Improve CLS

  1. Always set dimensions for media
    <img src="photo.webp" width="800" height="600" alt="Photo">

    Or use CSS aspect-ratio: aspect-ratio: 16 / 9;

  2. Reserve space for dynamic content
    • Ad blocks: set min-height
    • Embedded content: container with fixed dimensions
  3. Avoid inserting content above the current scroll position
  4. Fonts without FOUT
    • font-display: optional to prevent text shift
    • Font preloading: <link rel="preload" as="font" crossorigin>
  5. Animations — use transform instead of layout-triggering properties (top, left, width, height)

How to Measure Core Web Vitals

Field Data

Lab Data

Core Web Vitals and SEO

Core Web Vitals are one Google ranking factor but not the only one. Quality content, relevance, and link profile still matter more. However, all else being equal, a site with better CWV will gain an advantage.

Recommendations:

Summary

Core Web Vitals are three metrics defining user experience quality: LCP (loading speed), INP (interactivity), CLS (visual stability). Optimize LCP first as it delivers the biggest impact for users and SEO. Use field data for prioritization and lab data for debugging.

Check your website right now

Check now →
More articles: SEO
SEO
Structured Data for SEO: Schema.org Guide
16.03.2026 · 11 views
SEO
XML Sitemap Guide: Creation, Structure, and Best Practices
16.03.2026 · 18 views
SEO
Website Migration Checklist: Avoid SEO and Downtime Pitfalls
16.03.2026 · 15 views
SEO
Redirect Chains: How They Affect SEO and Speed
11.03.2026 · 11 views