
Responsive Performance Budgets: LCP, INP, CLS
Mobile-anchored performance budgets that survive real devices — LCP within 2.5s, INP of 200ms or less, CLS of 0.1 or less, with resource budgets enforced in CI.
TL;DR: Mobile is the anchor for responsive performance budgets. Alex Russell's 2024 global estimate puts the 75th-percentile mobile device at a roughly $350 Android phone sold new in 2020–2021 (your own visitors may differ), and budgets that survive on that class of phone can leave desktop more headroom, though the same analysis, from Edge telemetry, puts about 45% of desktop devices in a low-end bucket (four or fewer cores, or 4 GB of RAM or less). The Core Web Vitals "good" thresholds are LCP within 2.5 seconds of the page starting to load, INP of 200 milliseconds or less, and CLS of 0.1 or less, each assessed at the 75th percentile of page loads, segmented across mobile and desktop. Resource budgets translate those targets into per-resource limits; illustrative starting points to calibrate against your own field data are HTML under 50 KB compressed, JavaScript under 170 KB compressed for the first interaction, an LCP image under 100 KB, and two font weights totaling under 50 KB. Give the LCP image fetchpriority="high" (plus a preload with high fetch priority when the image is referenced only from CSS or JavaScript), lazy-load everything below the fold, and enforce the budgets in CI with Lighthouse CI and a per-route bundle-size check so regressions block merge instead of silently degrading the field score over time.
Why mobile is the budget anchor
The shape of the median web user has shifted slowly enough that many engineering teams still budget for the wrong device. The Chrome User Experience Report segments its field data by form factor — phone, tablet, desktop — so the same route can pass on desktop and fail on phone; as of Nov 2026, its documentation does not list device model, device age, or bandwidth among its dimensions or metrics (it does report an estimated round-trip time). For the hardware itself, Alex Russell's 2024 analysis of device and network distributions puts the 75th-percentile mobile device at roughly a Samsung Galaxy A51-class Android phone that sold new for about $350 in 2020–2021 (as of January 2024) — well below the phones most engineering teams carry. The same analysis finds the 75th-percentile desktop is also a low-end machine, so desktop is not automatically fast; but phones add cellular-network variability and passive cooling that throttles sustained CPU work.
If you set budgets against the desktop profile and verify there, you are budgeting against a class of devices that already has enough headroom to mask regressions. The mobile profile can fail first and most visibly, and on sites where phones make up most page loads, it fails for most of your users. Budgets set against the mobile anchor give desktop more headroom, though not a free pass; budgets set against desktop fail mobile in the field while looking healthy in the dashboard.
Practically, the rule is to set the threshold to a value your mobile page loads meet at the 75th percentile, then verify desktop comes in well under. The reverse is risky because desktop headroom can hide mobile regressions until they show up in field data much later.
The Core Web Vitals thresholds
The Core Web Vitals are the user-experience signals that feed both the Search ranking pipeline and your own field telemetry. The "good" thresholds — assessed at the 75th percentile of page loads, segmented across mobile and desktop (the CrUX API reports a 28-day rolling average) — are:
| Metric | Good threshold | Note |
|---|---|---|
| LCP (Largest Contentful Paint) | ≤ 2.5s | Main content visible quickly |
| INP (Interaction to Next Paint) | ≤ 200ms | Replaced FID in March 2024 |
| CLS (Cumulative Layout Shift) | ≤ 0.1 | Page does not jump unexpectedly |
LCP measures when the main visual content is on screen — usually a hero image or a large heading. INP observes the click, tap, and keyboard interactions throughout a user's visit to a page and reports the longest one, ignoring outliers — not just the first input. INP replaced FID as a Core Web Vital on March 12, 2024, and the web.dev INP guide explains the difference: FID only measured the delay before the browser could begin processing the first input, missing the full picture of interaction quality. INP measures the complete latency from input to the next paint for each of those click, tap, and keyboard interactions.
CLS measures unexpected visual movement after the page first renders — images loading without reserved space pushing the page down, late-loading fonts shifting text, ads injecting late. The threshold of 0.1 is small; a single large image without explicit dimensions can be enough to exceed it.
These thresholds are not arbitrary. Google set them against two criteria: human-perception and HCI research on a high-quality user experience, and achievability for existing sites, checked against CrUX data. For LCP, the research puts the time users wait before losing focus at roughly 0.3 to 3 seconds, and 2.5 seconds was chosen within that range on achievability. For INP, the research points to about 100 ms as the limit for feedback that feels instant, and 200 ms was chosen once achievability was also weighed. For CLS, Google's internal testing found shifts of 0.15 and higher consistently perceived as disruptive, while shifts of 0.1 and lower were noticeable but not excessively disruptive.
Budget by resource type
Translating Core Web Vitals targets to resource budgets makes them actionable for engineering. Illustrative starting points for compressed-byte budgets on a route that needs to hit LCP within 2.5s on a midrange cellular connection look like this:
| Resource | Budget (compressed) | Notes |
|---|---|---|
| HTML document | < 50 KB | Affects FCP and LCP directly |
| JavaScript (first interaction) | < 170 KB | Framework plus critical code only |
| CSS | < 30 KB | Critical CSS inlined; rest deferred |
| LCP image | < 100 KB | AVIF or WebP, properly sized |
| Below-fold images | variable, lazy-loaded | Native `loading="lazy"` |
| Fonts | < 50 KB | Two weights of one family, WOFF2 |
These are illustrative starting points, not specs or measured thresholds — calibrate them against your own field data and route mix. The JavaScript budget can drift quietly. Compressed size understates its cost: the browser has to parse, compile, and execute the uncompressed code. In Chrome, V8 does much of the parsing and compiling of downloaded scripts off the main thread (large inline scripts are still parsed and compiled on it), but execution runs on the main thread, and that work is slowest on the lower-end phones that anchor the budget. A single added dependency can push INP over the threshold — easy to miss in lab tests that do not script interactions, and visible in CrUX only after its 28-day window absorbs the change.
When the LCP element is an image, the image budget is the one to watch for LCP. A poorly compressed hero image of several hundred kilobytes can push LCP toward or past 2.5s on a slow cellular connection before any JavaScript runs. Modern formats help — Google reports WebP lossy images 25 to 34 percent smaller than comparable JPEGs at equivalent SSIM quality, and web.dev reports AVIF savings of more than 50 percent versus JPEG in some cases (as of June 2021), though results vary per image — but the bigger win is right-sizing the image with responsive image attributes so the browser does not download a 1920px-wide hero to a 360px phone.
Lazy loading the right things
Native lazy loading for images and iframes reached Baseline 2023 and removes most of the case for image lazy-loading libraries:
<img src="hero.jpg" alt="..." loading="eager" fetchpriority="high"
width="1280" height="720">
<img src="below-fold.jpg" alt="..." loading="lazy"
width="800" height="600">
<iframe src="..." loading="lazy"></iframe>loading="lazy" defers the image fetch until the image is near the viewport. Below-fold images, embedded iframes (video embeds, ad slots), and any content that is not part of the first paint should be lazy. A costly mistake is lazy-loading the LCP image itself — a lazy image is not fetched until layout confirms it is in the viewport, so marking the hero loading="lazy" delays its fetch and hurts LCP. The LCP image gets loading="eager" (the default) and ideally fetchpriority="high".
Defer non-essential JavaScript with <script defer> or <script type="module"> — both keep the parser non-blocking. Code-split routes so the first navigation does not pull the whole bundle: framework page-level splits are usually automatic, but third-party libraries imported into multiple routes may need an explicit dynamic import, depending on how your bundler splits shared code. Analytics scripts, chat widgets, A/B testing libraries, and consent management platforms should all load after first interaction unless your consent design needs them earlier — for example, a consent prompt you show before any non-essential tracking runs.
LCP coordination
The LCP element is usually a hero image, a large headline, or a video poster. The browser identifies it after layout. An LCP image that is an <img> with its src or srcset in the initial HTML is discoverable early, and web.dev suggests fetchpriority="high" on that element, adding that a high priority on more than one or two images stops helping LCP. When the LCP image is referenced only from an external CSS or JavaScript file, web.dev recommends preloading it with a high fetch priority:
<link rel="preload" as="image" href="/hero-1280.avif"
imagesrcset="/hero-640.avif 640w, /hero-1280.avif 1280w"
imagesizes="100vw" fetchpriority="high">The fetchpriority attribute signals to the browser that this resource is critical. Reaching Baseline 2024, fetchpriority="high" on the LCP image hints that the browser should give it a higher fetch priority than it would otherwise get — a hint, not a directive. The opposite signal — fetchpriority="low" — is useful for below-fold and decorative content that should yield bandwidth to the critical path.
Avoid CSS background-image for the LCP element. Unless you preload it with <link rel="preload"> in the HTML (or a Link header), the browser cannot discover a CSS background image until it applies the stylesheet, which usually means waiting for network requests to finish — a delay that grows on a slow cellular connection. Prefer <img> for any content image that might be the LCP — including hero banners and product photos — and reserve background-image for decorative textures.
Set explicit width and height attributes on every <img> and <video>. This is the simplest CLS fix: without dimensions, the image space is zero until the image loads, and everything below it shifts down at load time. With dimensions, the browser reserves the correct aspect ratio in the layout and the load is invisible. The same rule applies to ads and embeds — wrap them in containers with reserved aspect ratio (aspect-ratio: 16 / 9 works) so late-loading third-party content cannot push the page.
INP wins from non-blocking work
INP is best measured in the field. A standard Lighthouse run loads the page in a simulated environment without a user, so it cannot measure INP — Total Blocking Time is the lab proxy. Lighthouse timespan runs can include scripted interactions, but lab tests cannot accurately predict when real users will interact. Field data exposes it.
The fix vocabulary is small but specific:
- Break up long tasks. Any task over 50ms is a long task; the browser blocks interactions while a task of any length runs, and long tasks are where users start to feel it. Use
requestIdleCallbackfor non-urgent work where it is available (as of Nov 2026, MDN browser-compat-data lists no stable Safari support, so feature-detect and fall back), or the yield-to-main pattern where a function awaitsscheduler.yield()where supported (Chrome, Edge, and Firefox but not Safari, same source) — or else a promise that resolves insetTimeout(resolve, 0)— partway through its work so the browser can process queued input. - Move heavy compute to Web Workers. JSON parsing of large responses, image decoding for canvas, search indexing — anything CPU-bound that does not need DOM access — belongs in a worker. The main thread stays free for input handling.
- Avoid synchronous DOM measurements inside event handlers. Reading
element.offsetWidthorgetBoundingClientRect()after the handler has already written to the DOM triggers forced synchronous layout, which can blow the 200ms budget on a single interaction. Read-then-write, or batch reads viarequestAnimationFrame. - Defer main-thread analytics. Analytics libraries that do work on every interaction can add to interaction latency, especially on slower devices. Beacon them through
requestIdleCallbackwhere available or the Navigator.sendBeacon API, which sends the data asynchronously, when the user agent has an opportunity to do so, without delaying unload or the next navigation.
Enforcing budgets in CI
Budgets that are not enforced drift. The pattern that survives is to set thresholds in CI and let regressions block merge. Lighthouse CI runs Lighthouse in CI on every commit — against your build served locally or against URLs you list, such as a preview deployment — and asserts against thresholds:
// lighthouserc.cjs
module.exports = {
ci: {
assert: {
assertions: {
'categories:performance': ['error', { minScore: 0.9 }],
'largest-contentful-paint': ['error', { maxNumericValue: 2500 }],
'cumulative-layout-shift': ['error', { maxNumericValue: 0.1 }],
'total-byte-weight': ['error', { maxNumericValue: 500000 }],
},
},
},
};The total-byte-weight audit sums the transfer size of every request in the test load. The 500 KB assertion sits above the roughly 400 KB that the fixed rows of the budget table add up to, leaving headroom for requests the table does not list — third-party tags, the favicon and manifest, and any lazy-loaded images the test viewport happens to fetch. Derive the value from your own route's measured total rather than copying it; Lighthouse's own audit guidance is far looser, suggesting pages stay under 1,600 KiB.
Pair Lighthouse CI with a per-bundle size check (size-limit, bundlewatch, or a custom check on the bundler output) so JavaScript regressions get caught before they reach LCP measurement. Tag the budgets per route — the homepage and the search results page have different thresholds because the LCP element and the JavaScript surface are different.
Synthetic Lighthouse tests are necessary but not sufficient. Testing on real mobile devices — on WebPageTest, check which real-device test locations your plan offers — can catch CPU and network behavior that emulated throttling misses; INP still needs field data, because lab runs only see the interactions you script. A recurring real-device run on the top five routes is a useful supplement to Lighthouse CI, and it can surface device-class regressions that an emulated environment does not reproduce.
Phase 1 deliverables and acceptance criteria
The migration from "we will eventually optimize this" to "the budget enforces itself" is incremental.
- Set baseline Lighthouse CI budgets for your top five routes — start with the current measured values, then ratchet down on a fixed recurring cadence.
- Identify the LCP element on each top route. If it is an image, add
fetchpriority="high"to its<img>, and if the image is referenced only from CSS or JavaScript, preload it with<link rel="preload" as="image" fetchpriority="high">. Removeloading="lazy"from any LCP image. - Set explicit
widthandheighton every<img>and reserve aspect-ratio on every dynamic embed. Missing dimensions are among the simpler CLS causes to fix. - Move non-essential JavaScript to defer or idle execution. Audit analytics, chat widgets, and consent libraries — check whether each one loads earlier than it needs to.
- Measure on real devices, not just Chrome DevTools throttling. A midrange Android, a four-year-old iPhone, and the actual cellular network are closer to what your mobile visitors may be using — the DevTools simulation is a useful approximation, not ground truth.
Performance budgets are not a one-off project; they are a permanent guardrail. To keep Core Web Vitals green through years of feature work, let CI reject the regression before it merges rather than relying on engineers to catch it by hand.