Web Development

Core Web Vitals: How to Make Your Web App Fast (and Why Google Cares)

What LCP, INP and CLS measure, the official thresholds, why field data matters more than lab scores, and the fixes that move each metric.

  • DivTech editorial team
  • 7 min read
≤ 2.5 sLargest Contentful Paint (LCP): loading
≤ 200 msInteraction to Next Paint (INP)…
≤ 0.1Cumulative Layout Shift (CLS): visual…
Web Development · part 3 of 5

Core Web Vitals are Google's three metrics for real-user experience: how quickly the main content appears, how quickly the page responds to input, and how stable the layout stays while it loads. They matter for two reasons. Slow, jumpy pages frustrate users and lose conversions, and Google uses page experience, including Core Web Vitals, as one of its search ranking signals. This guide explains each metric, its official thresholds, the usual causes of poor scores and the fixes that work. Performance is built into how our web application development team builds and audits applications.

The three metrics and their thresholds

Each metric has a 'good' threshold. Google assesses them at the 75th percentile of real page loads, separately for mobile and desktop, so a page passes only when at least three out of four visits meet the target.

key numbersCore Web Vitals 'good' thresholds
≤ 2.5 sLargest Contentful Paint (LCP): loading
≤ 200 msInteraction to Next Paint (INP): responsiveness
≤ 0.1Cumulative Layout Shift (CLS): visual stability
75thPercentile of real page loads that must meet each target

Official thresholds published by Google. Poor is above 4 s for LCP, above 500 ms for INP and above 0.25 for CLS; values in between need improvement.

DivTech System
  • LCP measures when the largest image or text block in the viewport has rendered, usually a hero image, banner or large heading.
  • INP measures the delay between a user interaction (click, tap or key press) and the next visual update, reporting one of the slowest interactions during the visit. It replaced First Input Delay as a Core Web Vital in March 2024.
  • CLS measures how much visible content moves unexpectedly, such as text jumping down when an image or ad loads above it.

Field data vs lab data

Field data comes from real users. The Chrome UX Report collects it from Chrome users who have opted in, and you can see it in PageSpeed Insights and in the Core Web Vitals report in Google Search Console. This is the data Google uses. Lab data comes from a simulated test, such as Lighthouse in Chrome DevTools, on a fixed device and network. Lab tests are repeatable and ideal for debugging, but they cannot measure INP directly because no real person is interacting, and they may not match what your users experience.

Fixing LCP: get the main content on screen sooner

  • Speed up the server response. Cache HTML at a CDN where possible, fix slow database queries and remove redirect chains.
  • Let the browser find the LCP image early. Use a normal img element in the HTML rather than a CSS background or a script-injected image, give it fetchpriority=high, and never lazy-load it.
  • Serve smaller images. Use modern formats such as AVIF or WebP, correct dimensions and responsive srcset.
  • Remove render-blocking resources. Inline critical CSS, defer non-critical JavaScript and load web fonts with font-display set to swap or optional.
  • Render on the server. Pages that build their content in the browser after a large JavaScript bundle loads are slow to show LCP. Server-side rendering or static generation, available in frameworks such as Next.js, helps a lot.

Fixing INP: keep the main thread free

Poor INP almost always means the browser's main thread is busy when the user interacts, so it cannot respond in time.

  • Break up long tasks. Split heavy JavaScript work into smaller chunks and yield to the browser between them so input can be handled.
  • Ship less JavaScript. Audit bundles, remove unused libraries, split code by route and load non-essential widgets after interaction.
  • Watch third-party scripts. Tag managers, chat widgets, A/B testing and analytics scripts often cause the longest tasks. Load them late and remove the ones nobody uses.
  • Respond first, compute later. Update the UI immediately with a pressed state or spinner, then do the expensive work.
  • Avoid large re-renders. In React and similar frameworks, keep state close to where it is used, memoise expensive components and virtualise long lists.

Fixing CLS: reserve space for everything

  • Set width and height attributes, or a CSS aspect-ratio, on images, videos and iframes.
  • Reserve space for ads, embeds and cookie or promo banners before they load.
  • Never insert content above existing content unless the user asked for it.
  • Use fallback fonts with similar metrics so text does not reflow when web fonts arrive.
  • Animate with transform and opacity rather than properties that change layout, such as top or height.
SymptomLikely causeFirst fix to try
Slow LCP on mobile onlyOversized hero image or slow server responseResponsive AVIF or WebP images, CDN caching
LCP fine in lab, poor in fieldReal users on slower devices and networksReduce page weight; check field data by country and device
Poor INP on one page typeHeavy event handlers or large re-rendersProfile in DevTools and split long tasks
Poor INP across the siteThird-party scripts or a large JavaScript bundleAudit and defer third-party tags; split code
High CLSImages, ads or banners without reserved spaceSet dimensions and reserve slots

Common culprits by platform

The same metrics fail for different reasons depending on how the site is built:

  • WordPress and other CMS sites: too many plugins each adding scripts and styles to every page, page builders that generate heavy markup, and unoptimised uploaded images. Audit plugins, load assets only where they are used and add full-page caching. The same discipline applies to any web application: ship only the code each page needs.
  • Single-page apps: large JavaScript bundles that must download and run before anything useful appears, hurting both LCP and INP. Server rendering or static generation, route-level code splitting and trimming dependencies make the biggest difference.
  • E-commerce sites: heavy product image galleries, many third-party tags for marketing and reviews, and late-loading promo banners that shift the layout. Prioritise the main product image and reserve space for banners.
  • Logged-in dashboards: these are not indexed by Google, but users still feel slow interactions. INP problems from large tables and charts are common; virtualise lists and move heavy calculations off the main thread or to the server.

Make performance a habit, not a project

Scores drift as features and scripts are added. Teams that keep good Core Web Vitals treat performance as an ongoing loop rather than a one-off clean-up.

loopThe performance loop
repeat
  1. 01Measure in the field

    Track LCP, INP and CLS from real users by page template and device.

  2. 02Diagnose in the lab

    Reproduce slow pages with Lighthouse and the DevTools Performance panel.

  3. 03Fix the biggest cause

    Prioritise templates with the most traffic and the worst scores.

  4. 04Guard in CI

    Set budgets for bundle size and lab scores so regressions fail the build.

  5. 05Verify and repeat

    Confirm field data improves over the following weeks, then pick the next issue.

DivTech System

Performance budgets fit naturally into a CI/CD pipeline. Design choices matter too: heavy hero videos, carousels and pop-ups are UX decisions as much as engineering ones, which is why our UI/UX design and engineering teams review them together. Speed is especially important for online stores, a large part of our e-commerce software development work. Fast loads are also the foundation of a good progressive web app, and your choice of frontend framework affects how much JavaScript you ship.

Get a performance audit

DivTech runs Core Web Vitals audits that combine field data, lab profiling and a prioritised fix list, and can implement the fixes for you. Request a quote with the pages that matter most to your business and we will show you where the biggest wins are.

Frequently asked questions

Do Core Web Vitals affect Google rankings?

Yes, as part of Google's page experience signals, but relevance and content quality matter more. Good scores will not rescue weak content, though they can help when competing pages are similar, and they improve the experience for every visitor regardless of search.

Why does PageSpeed Insights show different results from Lighthouse?

PageSpeed Insights shows field data from real Chrome users over the previous 28 days alongside a lab test. Lighthouse in DevTools runs only a lab test on your own machine and network. Field data reflects real devices and connections, so the two often differ.

What replaced First Input Delay?

Interaction to Next Paint (INP) replaced First Input Delay as a Core Web Vital in March 2024. INP looks at interactions throughout the visit, not only the first one, so it is a stricter test of responsiveness.

How long do improvements take to show in Search Console?

Field data is based on a rolling 28-day window of real visits, so improvements appear gradually over about four weeks after release, and only for pages with enough traffic to be reported.

  • Core Web Vitals
  • Web performance
  • SEO

free consultation

Need help with web development?

Talk to our Web Application Development team. We'll review your situation and suggest a practical next step, free.