Core Web Vitals are the three user-experience metrics that Google's web.dev programme designates as applying to every page, measured from real users' browsers. As of this guide's date there are three stable metrics: Largest Contentful Paint (LCP) for loading, Interaction to Next Paint (INP) for responsiveness, and Cumulative Layout Shift (CLS) for visual stability. INP replaced First Input Delay (FID) in March 2024. web.dev states that stable Core Web Vitals will not change more than once a year, and that any change is announced in its public changelog.
Good LCP is 2.5 seconds or less. Good INP is 200 milliseconds or less. Good CLS is 0.1 or less. A page passes when all three are good at the 75th percentile of page loads, assessed separately for mobile and desktop. Source: web.dev/articles/vitals. Several third-party blogs claim the 2026 thresholds were tightened; the official documentation does not say so, and this guide follows the official documentation.
Largest Contentful Paint
LCP reports the render time of the largest image, video poster, background image or block of text visible in the viewport, measured from when the user started navigating to the page. The browser keeps re-evaluating which element is largest as the page loads and reports the final candidate; measurement stops as soon as the user interacts. Only the visible portion of an element counts, and some elements are excluded in Chromium: fully transparent ones, full-viewport backgrounds, and low-entropy placeholder images.
On a gaming page the LCP element is almost always one of three things: the game's hero artwork, a large promotional banner, or the canvas element's poster image. If the game canvas itself is the largest thing and it starts blank, the LCP candidate may be whatever text block happens to be biggest, which produces an LCP time that looks fine while the user is actually staring at an empty frame. Give the game container a real poster image so the metric measures what the user sees.
The four sub-parts
web.dev's optimization guide breaks LCP into four sequential parts and recommends looking at their proportions rather than absolute times:
- Time to First Byte. From navigation until the first byte of HTML arrives. Includes redirects, DNS, connection and server time. Should be roughly 40 percent of LCP.
- Resource load delay. From TTFB until the browser starts fetching the LCP resource. Should be under 10 percent. It balloons when the image is only discoverable after CSS or JavaScript runs, or when it is lazy-loaded.
- Resource load duration. The download of the LCP resource itself. Roughly 40 percent. Governed by file size and connection speed.
- Element render delay. From the resource finishing until the element is painted. Should be under 10 percent. Grows when a render-blocking stylesheet or script is still outstanding.
What breaks LCP on game pages
- The hero image is set as a CSS background in a stylesheet that loads late, so the browser cannot discover it until the CSS arrives. Put the image in the HTML as an
<img>withfetchpriority="high", or preload it. - The LCP image is lazy-loaded. web.dev is unambiguous: never lazy-load the LCP image.
loading="lazy"belongs below the fold only. - A synchronous analytics, tag-manager or ad script in the
<head>delays every paint. - The page is client-rendered: an empty shell plus a JavaScript bundle that builds the DOM. The LCP element cannot exist until the bundle runs. Server-render or pre-render the shell.
- The hero is served at desktop resolution to phones. Use
srcsetandsizes, and modern formats. The asset guide covers both.
Interaction to Next Paint
INP measures how quickly the page visibly responds to user input. For every click, tap and key press during the visit, the browser records the time from the input until the next frame is painted. The page's INP is roughly the worst of these, with a small number of outliers discounted on pages with many interactions. Scrolling and hovering do not count.
Each interaction has three phases:
- Input delay: the input arrived while the main thread was busy, so the event handler could not start. Caused by long tasks: a booting game runtime, a third-party script, a large hydration.
- Processing duration: the event handlers themselves. Heavy handlers that update state synchronously, read layout and then write it, or rebuild large parts of the DOM.
- Presentation delay: after the handlers return, the browser has to recalculate style, lay out, paint and composite. A large DOM or expensive CSS makes this slow.
Why gaming pages struggle with INP
INP covers the whole visit, and a gaming visit is long and full of taps. The game loop runs on the same main thread as the page, so if a frame's update and render take 40 milliseconds, every tap that arrives during that frame waits up to 40 milliseconds before its handler even starts. Add a slow handler and a heavy paint and the 200 millisecond threshold goes quickly.
The remedies, drawn from web.dev's INP optimization guide and the Long Animation Frames API, are: break long tasks and yield to the main thread between chunks; keep per-frame work inside the frame budget; move decoding, physics and asset parsing to a Web Worker; avoid reading layout immediately after writing it; limit third-party scripts; and keep the DOM small. Show visual feedback in the same frame as the input, even if the real work completes later, because INP measures the next paint, not the completion of the work.
Cumulative Layout Shift
CLS measures unexpected movement of visible content. For each layout shift the browser computes an impact fraction (how much of the viewport the moved elements occupied across the two frames) multiplied by a distance fraction (the largest distance any of them moved, relative to the viewport's larger dimension). Shifts are grouped into session windows of up to five seconds with gaps under one second, and CLS is the largest window's total. Shifts within 500 milliseconds of a discrete input such as a tap are excluded, because the user expected something to happen.
What shifts on game pages
- The game container has no reserved size. It starts at zero height, the runtime boots, and everything below jumps. Set an explicit
aspect-ratioor height on the container before any script runs. - Images without
widthandheightattributes. The browser cannot reserve space until the image headers arrive. - Late banners, cookie notices and promotional strips inserted above existing content. Reserve the space or overlay rather than insert.
- Web fonts that swap in with different metrics from the fallback. Use
font-displaywith size-adjusted fallbacks, or system fonts. - Animating layout properties. Changing
top,heightormarginmoves neighbours. Animatetransformandopacityinstead.
Time to First Byte
TTFB is not a Core Web Vital, but it is the first sub-part of LCP and the floor under every other metric. It runs from navigation start until the first byte of the response arrives and includes redirect time, service worker start-up, DNS, connection and TLS negotiation, and the request itself. web.dev suggests most sites should aim for 0.8 seconds or less and treats values over 1.8 seconds as poor. The latency guide explains each component; the CDN guide explains how to make the HTML itself cacheable at the edge.
Render-blocking resources
Stylesheets block rendering. Synchronous scripts block parsing. Both delay LCP by increasing element render delay. The standard pattern is to inline the small amount of CSS needed for the first viewport, load the rest with a non-blocking technique, and mark every script defer or load it as a module. Third-party scripts deserve particular suspicion: each one is a stylesheet or script you do not control on an origin you do not control.
Responsive images
An image served larger than its displayed size wastes bytes on the LCP resource's download. srcset with width descriptors plus a sizes attribute lets the browser pick the right candidate for the viewport and device pixel ratio; the <picture> element adds format negotiation so AVIF or WebP is sent where supported. Always include intrinsic width and height so the browser can reserve the box and avoid a layout shift.
JavaScript execution
JavaScript is the most expensive byte on the page. It has to be downloaded, parsed, compiled and executed, and the last three happen on the main thread. A gaming page often ships two separate bundles: the page's framework and the game's runtime. Code-split both so that the first paint needs neither; load the game runtime only when the container is in view or the user asks to play; and never load scripts for features that are not on the page. The asset guide covers chunking and the HTML5 gaming guide covers the runtime's own boot sequence.
Measuring
Use the web-vitals JavaScript library or a Real User Monitoring product to collect field values from your own users, and CrUX for the public view of your origin. Use Lighthouse and the DevTools Performance panel to diagnose: they attribute LCP to its sub-parts, highlight long tasks, and show which element shifted. Remember that lab tools measure the load, not the play session, so INP and CLS problems that appear only during play need field data to find.
Suppose a game page's field LCP is 3.4 seconds. Lab attribution shows TTFB 0.6 s, resource load delay 1.5 s, load duration 1.0 s and render delay 0.3 s. The delay is the problem: the hero image is referenced only from a stylesheet. Moving it into the HTML with fetchpriority="high" would let the fetch start at TTFB. These numbers are invented to illustrate the sub-part analysis, not reported from any site.
Sources
Primary documentation consulted for this guide. Thresholds and API behaviour were checked against these pages on 2026-11-02.
- Web Vitals — web.dev
- Largest Contentful Paint (LCP) — web.dev
- Optimize Largest Contentful Paint — web.dev
- Interaction to Next Paint (INP) — web.dev
- Optimize Interaction to Next Paint — web.dev
- Cumulative Layout Shift (CLS) — web.dev
- Optimize Cumulative Layout Shift — web.dev
- Time to First Byte (TTFB) — web.dev
- Optimize Time to First Byte — web.dev
- Optimizing resource loading with the Fetch Priority API — web.dev
- Why lab and field data can be different — web.dev
- Chrome UX Report (CrUX) — Chrome for Developers
- Largest Contentful Paint specification — W3C
- Event Timing API specification — W3C
- Layout Instability API (draft) — WICG
- Understanding page experience in Google Search results — Google Search Central