INP is the Core Web Vital many sites fail on mobile. Learn how to measure it, find the slow interaction, and fix the scripts behind it.

scheduler.yield() where it is supported (Chrome, Edge, and Firefox) and fall back to setTimeout elsewhere, do the visual update first, and defer everything else until after the next paint.For years, the Core Web Vitals conversation was mostly about loading, which describes the first few seconds of a visit. Chrome's own usage data, cited by Google in its INP documentation, says that about 90 percent of a user's time on a page is spent after it loads. That is when people open menus, filter product grids, type into search boxes, accept cookie banners, and submit forms.
First Input Delay ignored nearly all of that. It measured only the delay before the browser started handling the first interaction, not the handler or the screen update, so most sites passed it easily.
INP fixes both gaps. It watches every click, tap, and key press for the whole life of the page, measures each one from the moment of input until the browser paints the next frame, and reports a value close to the slowest. If a user taps "Add to cart" and nothing visibly happens for 600 milliseconds, INP sees it.
That matches the complaint users actually have ("I clicked it and nothing happened"), and it makes INP harder to fix, because the cause can sit anywhere in your JavaScript, your rendering pipeline, or your third-party scripts.
This guide is for developers and technical SEOs who need to get from "Search Console says INP is poor" to a specific line of code: how INP is calculated, field and lab data, attribution with web-vitals and the Long Animation Frames API, a DevTools workflow, fixes with code, third-party scripts, Webflow and WordPress notes, and a remediation plan.
Google's documentation on web.dev says INP "assesses a page's overall responsiveness to user interactions" by observing the latency of all click, tap, and keyboard interactions during a visit. The final value is the longest interaction observed, with outliers ignored.
Three details in that definition matter in practice.
Only three interaction types count. Mouse clicks, taps on a touchscreen, and key presses (on a physical or onscreen keyboard) are measured. Hovering, scrolling, and zooming are not. A busy scroll handler can still hurt INP indirectly by occupying the main thread when a user taps.
The measurement ends at the next paint. INP doesn't stop when your event handler returns. It stops when the browser presents the next frame after the interaction. If your handler finishes in 20 milliseconds but triggers a 300 millisecond style and layout recalculation, the interaction took over 300 milliseconds.
A page with no interactions has no INP. If the user only scrolls, or a crawler loads the page without interacting, no INP value is reported. This is why Lighthouse's default navigation mode can't report INP.
Google's thresholds, assessed at the 75th percentile of page loads and split by mobile and desktop:
The 75th percentile rule means you pass when at least 75 percent of page views have an INP at or below 200 milliseconds. It also means the slow quarter of your audience decides the score. That quarter is usually on mid-range and low-end Android phones, which is why mobile INP fails so much more often than desktop.
On a page with only a few interactions, INP is simply the slowest one. On pages with many interactions (a long session in a web app, a form with dozens of fields), one unusual hiccup would otherwise dominate the score, so the definition ignores the single highest interaction for every 50 interactions. On a page with 120 interactions, the third slowest is reported.
Then the per-page-view values are collected across all visits, and the 75th percentile becomes the score you see in CrUX.

So a single slow component can fail a whole template: if the mega menu takes 450 milliseconds to open on mobile and a quarter of visitors open it, the template fails even if everything else is fast. Interactions late in a session count too, so a listing page that slows as its DOM grows can report a poor INP despite fast early clicks.
Every interaction has three parts, and their sum is the interaction's latency:
pointerdown, pointerup, and click (and mousedown and mouseup for compatibility), and every listener on every one of them counts.requestAnimationFrame callbacks, style recalculation, layout, ResizeObserver and IntersectionObserver callbacks, paint, and compositing.
Each phase points at a different family of fixes:
The browser's main thread does almost everything a user can perceive: it parses HTML, evaluates JavaScript, runs event handlers, recalculates styles, performs layout, and paints. It does one thing at a time. A task is a unit of work on that thread, and Google defines any task over 50 milliseconds as a long task.
The browser can't interrupt a running task to handle input. If a user taps during a 400 millisecond task, the tap waits until that task finishes (input delay), then the handlers run (processing duration), then the browser renders (presentation delay). Long tasks are the common thread running through all three phases, which is why "break up long tasks" is the single most repeated piece of INP advice.
A long task doesn't have to be caused by the interaction to ruin it: a 300 millisecond analytics task that happens to run when the user taps adds up to 300 milliseconds of input delay. And rendering is main-thread work too, so a frame that recalculates styles for 6,000 elements is a long frame even if your JavaScript is fast.
Google's Search documentation says it "highly recommend[s] site owners achieve good Core Web Vitals" and that doing so "aligns with what our core ranking systems seek to reward." Relevance still comes first. Treat INP as a signal that matters at the margin for rankings and a lot for conversion: a checkout button that freezes for half a second costs revenue wherever the page ranks.
INP is a field metric. It depends on real devices, real network conditions, real third-party scripts with real consent states, and real user behavior. Lab tools are essential for diagnosis, but they can't tell you whether you pass.

The Chrome User Experience Report (CrUX) collects anonymized metrics from Chrome users who have opted in to sharing usage statistics. It powers Search Console's Core Web Vitals report, PageSpeed Insights field data, the CrUX API, and the BigQuery dataset. Three properties shape how you use it:
CrUX also has one visibility advantage over your own JavaScript: Chrome measures the page itself, so CrUX can include interactions inside iframes that a RUM script can't observe. If CrUX says INP is poor and your RUM data looks fine, an embedded iframe (a chat widget, a video player, a payment form) is a suspect.
PageSpeed Insights shows CrUX field data for the URL (if it has enough traffic) and the origin, followed by a Lighthouse lab run. The lab run cannot measure INP because it doesn't interact with the page. Its Total Blocking Time (TBT) number is the closest lab proxy: Google calls TBT "a reasonable proxy metric for INP" that is "not a substitute for INP in and of itself."
Search Console's Core Web Vitals report groups similar URLs and shows which groups fail INP on mobile and desktop. Use its example URLs as your test set.
For scripted checks, the CrUX API returns the current 28-day data for an origin or URL. It is free, allows 150 queries per minute per Google Cloud project, and updates daily around 04:00 UTC.
The INP histogram has three bins that line up with the thresholds (up to 200 ms, 200 to 500 ms, and over 500 ms), and each bin's density is the share of page loads in it. If you request a URL that doesn't have enough traffic, the API returns a 404; query the origin instead.
The CrUX History API returns the same metrics as a weekly time series: 25 collection periods by default and up to 40, updated every Monday. This is the right tool for "did our fix work?" because you can see the 28-day window move week by week.
Ineligible periods come back as null, printed here as "n/a."
The BigQuery dataset is origin-level and monthly, released on the second Tuesday of the following month. It is useful for comparing your origin with competitors over long periods. INP lives in the interaction_to_next_paint column of the chrome-ux-report.all.YYYYMM tables:
Dividing by SUM(inp.density) normalizes the result to the phone segment, because densities in the raw tables are shared across form factors. Querying all.* scans a lot of data, so filter _TABLE_SUFFIX tightly and check the bytes estimate before running.
CrUX tells you a template is slow. Real user monitoring (RUM) tells you which interaction on that template is slow, on which element, during which phase, and which script was running. Google's INP optimization guide is direct about this: start with field data from RUM if you have it, because CrUX "usually lacks the context needed for diagnosis."
A commercial RUM product will do this, or you can build it with Google's open source web-vitals library, whose attribution build adds a diagnostic object to each metric. For INP, the attribution includes:
As of October 2026 the current major version is 6. Version 6 added soft navigation support for browsers that expose it, and changed includeProcessedEventEntries to default to false to save memory. Here is a production-ready collector:
A few implementation notes from the library's documentation:
metric.id and keep the last value.durationThreshold option.interactionTarget usually means the element was removed from the DOM after the interaction, a clue that the interaction re-rendered the component. The generateTarget option lets you supply your own naming, such as a data-component attribute.Once data flows into a warehouse, the analysis that matters is the 75th percentile by template and element, with the dominant phase alongside it:
Adapt the template expression to your URL structure. A high share_during_load says the problem is input delay from startup work; a high p75_processing on one target says the problem is that element's handler.
A consent caveat for RUM. Most RUM scripts only run for visitors who accept analytics cookies. Google's documentation on CrUX and RUM differences notes that this can skew results. Your RUM sample may underrepresent exactly the visitors who saw the banner longest. CrUX isn't gated by your banner, so compare the two.
The web-vitals attribution build tells you the phase and the longest script. When you need more detail, or want to see long frames that aren't tied to the worst interaction, use the Long Animation Frames API (LoAF) directly.
The older Long Tasks API (in Chrome since version 58, and not deprecated) reports tasks over 50 milliseconds, but it tells you almost nothing about what ran inside them, and it ignores rendering work. LoAF, which shipped in Chrome 123 and Edge 123, measures animation frames instead of tasks. A long animation frame is a rendering update delayed beyond 50 milliseconds, and each entry includes:
blockingDuration deserves a closer look. It is the sum of each task's time beyond 50 milliseconds, with the frame's final rendering time counted inside the longest task. Chrome's documentation gives an example: tasks of 55 and 65 milliseconds followed by a 20 millisecond render produce a frame of about 140 milliseconds, but a blockingDuration of (55 minus 50) plus (65 plus 20 minus 50), or 40 milliseconds.

This observer logs the worst frames with their scripts, grouped by source file. It works as a console snippet for testing and as a module in your RUM code.
Paste it into the console, use the page like a visitor (open the menu, accept the banner, focus a form field), then run loafReport(). The second table ranks script hosts by time spent in long frames. When a consent platform, a tag manager container, or a chat vendor sits at the top, you know where the conversation with marketing starts.
There's no direct link from an INP entry to its frames, so tools match them by time. The web-vitals attribution build already does this and exposes the result as longAnimationFrameEntries.
sourceURL. Adding crossorigin="anonymous" to the script tag (when the vendor serves CORS headers) restores function names and character positions.duration, a late renderStart, and no scripts usually points at rendering cost.buffered: true.Field data tells you which interaction to look at. The DevTools Performance panel shows what happened inside it.
Your development laptop is many times faster than the phones that decide your INP. The Performance panel offers calibrated CPU throttling: choose Calibrate under the CPU throttling presets and DevTools measures your machine to create presets that approximate low-tier and mid-tier mobile devices. If you connect CrUX field data in the panel, it also suggests test conditions (for example, a 20x CPU slowdown and a Fast 4G network in Google's own example) that bring your local numbers closer to your real users.
When you open the Performance panel, it shows live metrics for the current page: LCP and CLS immediately, and INP as soon as you interact. The Interactions list under the metric cards records every interaction with its element, total time, and phase breakdown. Hover a value to see the breakdown.
This is the fastest way to confirm a RUM finding: with throttling on, click the flagged element and read the phases. Do it during load as well as after, since Google's lab advice is to interact during load, when the main thread is busiest, and to follow common user flows.
Click record, perform the slow interaction once or twice, and stop. In the trace:
Line up the interaction bar with the Main track:
Event: click (or pointerup, keydown) entries. Look for framework render functions, synchronous localStorage access, large JSON parsing, dataLayer.push calls that trigger heavy tag listeners, and purple Recalculate Style or Layout blocks inside the handler. A purple block with a red corner inside JavaScript is a forced synchronous layout.Change one thing at a time, record the same interaction under the same throttling, and compare. Then wait for field data: the lab number only predicts the field number.
Most INP fixes fall into a small number of patterns. Pick them by phase.
Yielding means pausing your JavaScript so the browser can run other queued work (including pending input and rendering) before continuing. The modern API is scheduler.yield(), available in Chrome and Edge from version 129 and in Firefox from version 142. Safari doesn't support it as of this writing. Its key advantage over setTimeout is that the continuation goes to the front of the queue at its priority level, so your work resumes before unrelated tasks that were queued later, while still letting input through.
The pattern from Google's guidance, with a fallback:
Yielding about every 50 milliseconds keeps each task under the long task threshold without paying the small cost of yielding after every item. Google no longer recommends checking navigator.scheduling.isInputPending() before yielding; yield regardless of whether input is pending.

The most effective handler-level fix separates what the user needs to see from what can wait: update the UI, let the browser paint, then run analytics, persistence, and secondary updates.
The requestAnimationFrame callback runs just before the next frame, and the setTimeout inside it schedules a task after that frame, the pattern Google's INP guide uses. Pushing analytics events after the paint matters more than it looks: on many sites, a dataLayer.push fires tag manager listeners synchronously, so tracking code runs inside your click handler and adds to processing duration.
Search-as-you-type, live filters, and form validation can run expensive work on every keystroke. Keep the input itself synchronous so typing feels instant, and debounce the expensive part:
Debouncing doesn't make the eventual render cheaper, so pair it with smaller renders.
Input delay during load is usually script evaluation: bundles executing, frameworks hydrating, and tags initializing. Practical steps:
defer or type="module" so they don't block parsing, and audit what actually needs to run at startup.import().scheduler.postTask(fn, { priority: 'background' }) where supported, or requestIdleCallback with a timeout, keeps it out of the way of input.Presentation delay grows with the amount of rendering work an interaction triggers. Two causes dominate.
DOM size. Google's guidance notes that Lighthouse starts warning above 800 DOM nodes and calls a DOM excessive above 1,400 nodes. Rendering cost scales with the number of elements affected by a style change, so a page with 5,000 elements pays more for every class toggle near the root. Count elements with document.querySelectorAll('*').length and look for duplicate mobile and desktop navigation, long product grids, nested page builder wrappers, and repeated inline SVG icons.
Layout thrashing. Reading a layout property (offsetHeight, getBoundingClientRect(), scrollTop, getComputedStyle()) after changing styles forces the browser to recalculate layout synchronously. Doing it in a loop forces it repeatedly:
In a LoAF entry, forced layout shows up as forcedStyleAndLayoutDuration on the script that caused it. In DevTools, the Forced reflow insight lists the functions responsible.
The CSS content-visibility: auto property lets the browser skip rendering work for off-screen sections until they approach the viewport. It is supported in Chrome, Edge, Firefox (from version 125), and Safari (from version 18). Google's guidance highlights its benefit for interactions: when an interaction changes the DOM, the browser can skip work for sections that are off-screen.
Set contain-intrinsic-size to a realistic estimate or you will introduce layout shifts as sections render. Don't apply it to content above the fold or to elements whose size you measure in JavaScript.
Interactions that rebuild large parts of the page are slow even with fast JavaScript. Google's guidance explains that streamed server HTML is parsed in chunks with automatic yielding, while HTML built in JavaScript can run as one long task.
<body> or <html> that changes theme or layout invalidates styles for the whole document. Scope the change to the component.transform and opacity. These can run on the compositor without layout.React 18 and later can split rendering work into interruptible chunks when updates are marked as non-urgent. Two APIs matter for INP.
useTransition marks a state update as a transition. React keeps urgent updates (like typing) responsive and renders the transition in the background, interrupting it if new input arrives. React's documentation is clear on one limit: transition updates can't be used to control text inputs. Keep the input's own state synchronous.
useDeferredValue lets you render an expensive child with a lagging copy of a value. React renders first with the old value, then re-renders in the background with the new one, restarting if the value changes again. It has no fixed delay, unlike debouncing, but the slow child must be wrapped in memo or it will re-render anyway.
One caveat: these APIs make rendering interruptible, not event handlers. A click handler that does 300 milliseconds of synchronous work is slow no matter how the resulting state update is marked, and one very expensive component still blocks until it finishes.
On marketing sites, first-party JavaScript is often modest. What fails INP is the stack of vendor scripts added over the years, each reasonable on its own. Google's tag best practices article notes that tag managers consume main-thread time, that INP "is susceptible to CPU contention on the main thread," and that the authors saw "a correlation between the size of tag managers and poorer INP scores."
Brightter's team has worked through consent banner (Ketch), reCAPTCHA, and Cloudflare Turnstile issues on client sites and on our own. The patterns below come from that kind of work and from vendor documentation. The specific fix always depends on the vendor's integration options, so test each change in the field.
A consent management platform (Ketch, OneTrust, Cookiebot, and others) has two INP exposures:
What helps:
Google's reCAPTCHA v3 documentation recommends including reCAPTCHA "in the background of pages for analytics" as well as on forms, and loading api.js with a render parameter. That background mode puts a sizable third-party script on every page, including pages with no form. It also documents that tokens expire after two minutes, and that execute should be called when the user takes the action rather than on page load.
That combination gives you a useful option if you decide the background scoring isn't worth the cost: load reCAPTCHA only on pages with forms, and only when the user shows intent (focusing a field), then call execute on submit.
The form needs a hidden g-recaptcha-response input, and your server must still verify the token. Weigh this against your fraud model: background scoring gives reCAPTCHA more signal, so this is a tradeoff, not a free win.
Cloudflare Turnstile supports the same idea natively through explicit rendering: load the script with ?render=explicit, and call turnstile.render() when you need the widget. Its execution: "execute" option renders the widget without running the challenge until you call turnstile.execute(). Combine explicit rendering with the same focusin trigger shown above, and the Turnstile script never loads for visitors who don't touch the form.
The same caution applies to both tools: challenge scripts, especially when they run in iframes, can add work that your own RUM can't see, so check CrUX after the change, not only your RUM.
Live chat vendors typically load a substantial bundle, an iframe, and persistent connections on every page, even though a small share of visitors ever open chat. The standard fix is a facade: a lightweight, static button that looks like the chat launcher and loads the real widget only when clicked (or, as a compromise, after the user has been on the page for a while). Lighthouse has long flagged this pattern under "Lazy load third-party resources with facades."
Vendor API names differ; most document a way to open the widget programmatically. The click that opens chat will be slower than others, but it is one interaction by a motivated user rather than a cost every visitor pays on every page.
Google Tag Manager and similar tools are not slow by themselves. The tags inside them are. Practical rules, many from Google's tag best practices guidance:
dataLayer events from interaction handlers after the next paint, so tag work doesn't block the visual response.Client-side testing tools often load synchronously in the <head> and hide the page until variations apply. That is mainly an LCP problem, but they also observe DOM mutations, re-apply variations on route changes, and track clicks on the main thread. Keep the number of concurrent experiments small, remove finished experiments from the container, and move SEO-relevant or high-traffic tests to the server or edge where you can.

From safest to riskiest, the options are:
A caveat on "delay until interaction." Many optimization plugins and snippets delay all scripts until the user's first interaction. Lab scores improve, but the cost can move onto that first tap, which now triggers every delayed script at once. Check first-interaction INP, and prefer idle loading with a timeout for anything heavy.
Partytown caveats. Partytown runs third-party scripts in a web worker and proxies their DOM access to the main thread. Its documentation lists the tradeoffs: DOM operations in the worker are "purposely throttled," events handled by third-party scripts that call event.preventDefault() have no effect, it suits scripts that mainly listen to events and send data (it names Google Tag Manager and Facebook Pixel) better than scripts that build UI, some services need a proxy because they don't send CORS headers, and page exit events are unreliable, so some unload-time analytics won't be sent. Its README states that it "is not guaranteed to work in every scenario." Treat it as an opt-in, per-script tool that you validate against your analytics data, not a switch you flip for every tag.
Webflow publishes static, server-rendered HTML, so the core page is light on JavaScript. As a Webflow Certified Partner, we find INP problems on Webflow sites usually come from what is layered on top.
Interactions. In July 2025, Webflow released Interactions with GSAP to all users at no extra cost, built on the GSAP library it had acquired, alongside Classic Interactions. Webflow's help center calls the GSAP version the recommended one and notes that each version loads its own resources, so a site using both pays for both.
transform and opacity where you can.Custom code. Code can be added in site settings (head and footer), page settings, and Embed elements. Each is a place where tags accumulate.
defer, and load vendor widgets with the facade or on-idle patterns above.A small loader for Webflow's footer code that delays non-critical tags until idle or first interaction, whichever comes first:
The setTimeout inside the interaction listener matters: it keeps the script injection out of the interaction's own task, so the user's first tap paints before the tags start loading. For the broader platform tradeoffs, see Webflow vs Headless vs Custom in 2026.
WordPress sites have a different shape: the HTML is server-rendered, but plugins can enqueue scripts on every page, and page builders can produce large, deeply nested DOMs.
wp_register_script() and wp_enqueue_script() accept a strategy of defer or async.The priority of 100 runs this after most plugins have enqueued their scripts. Script handles differ between plugins, so confirm them before deploying. For the full WordPress Core Web Vitals picture (LCP and CLS as well), see our technical guide to optimizing Core Web Vitals for WordPress.
Framework sites add hydration and client-side route rendering to the same third-party issues, and the fixes in Part 5 apply directly. The rendering choices that help AI crawlers and search engines read your content (covered in JavaScript SEO in 2026) usually help INP too, because server-rendered HTML lets the browser parse and render in chunks instead of in one long JavaScript task.
These patterns show up again and again when INP fails on otherwise well-built sites.
Optimizing TBT and calling it done. Lighthouse scores improve after delaying scripts, but INP in CrUX doesn't move, because the delayed scripts now run during the first interaction. Fix: measure first-interaction INP in RUM, and use idle loading with a timeout for heavy scripts.
Testing on a fast laptop. Everything feels instant on a developer machine. Fix: use calibrated CPU throttling, and test on a real mid-range Android phone with remote debugging.
Testing only after load. The slow interactions happen in the first seconds, when a user taps the menu while scripts are still evaluating. RUM shows loadState values of dom-interactive or dom-content-loaded. Fix: reproduce during load, and reduce startup work.
The everything-in-the-click-handler pattern. A click handler updates state, writes to storage, pushes three analytics events, recomputes a layout, and calls an API, all synchronously. Fix: visual update first, then afterNextPaint for the rest.
The consent cascade. The "Accept all" button releases every waiting tag in the same task. The most common first interaction on the site becomes the slowest. Fix: hide the banner first, stagger tag release, and remove tags no one uses.
The site-wide widget. reCAPTCHA, chat, reviews, or a booking widget loads on every page for a feature used on three pages. Fix: load per page, on intent, or behind a facade.
Trusting one data source. RUM looks fine but CrUX fails (iframes, consent-biased samples), or CrUX passes on the origin while key templates fail at the URL level. Fix: compare CrUX URL, CrUX origin, and RUM by template before prioritizing.
Fixing and checking the next day. CrUX is a 28-day rolling window. Fix: track weekly with the CrUX History API and watch RUM for immediate confirmation.
This sequence works for most teams. It assumes four to six weeks, mainly because field data takes that long to confirm results.

interactionTarget values by p75 INP, with phase breakdowns and loadState.Prioritize by how many page views a fix touches, then by how much it saves:
content-visibility, layout thrashing fixes.Ship fixes behind feature flags where you can, so you can compare RUM data for the old and new versions in parallel instead of waiting for CrUX.
INP looks complicated because the causes are spread across your code, your framework, your rendering pipeline, and every vendor script on the page. The principle underneath is simple: when a user acts, the browser must be free to respond, and the response must be cheap to render.
So: keep tasks short and yield often, paint the visible response first, keep the DOM small and style changes local, load third-party code only where it earns its place, and measure in the field with attribution, so you fix the interaction that actually fails.
Start with one template this week. Put the web-vitals attribution build on it, find the slowest element, and trace it on a throttled profile. The cause is almost always clear once you can see the phases.
Need help fixing slow interactions? Brightter, Inc. diagnoses INP with field data, RUM attribution, and DevTools traces, then fixes the causes at the platform level, from consent banner and bot protection integrations to interaction handlers and tag manager cleanup. As a Webflow Certified Partner that also builds on WordPress and modern JavaScript frameworks, we work in your codebase, not just in a report. Talk to our team about a Core Web Vitals audit.
Google rates INP as good at 200 milliseconds or less, needs improvement above 200 and up to 500 milliseconds, and poor above 500 milliseconds. The score is assessed at the 75th percentile of page loads, separately for mobile and desktop.
Interaction to Next Paint replaced First Input Delay as a Core Web Vital on March 12, 2024. FID measured only the input delay of the first interaction, while INP measures the full latency of every click, tap, and key press until the next frame is painted.
Collect real user data with the attribution build of Google's web-vitals library, which reports the interaction target, the three phases, the load state, and the longest script. Then reproduce the slow interaction in the Chrome DevTools Performance panel with CPU throttling to see exactly what ran.
No. scheduler.yield is available in Chrome and Edge from version 129 and in Firefox from version 142, but not in Safari as of October 2026. Use a small helper that calls scheduler.yield when it exists and falls back to a setTimeout promise elsewhere.
Consent banners, reCAPTCHA, chat widgets, tag managers, and A/B testing tools run on the same main thread as your own code, so their long tasks delay responses to user input. Remove unused tags, load widgets only where needed or behind facades, and fire non-essential tags after the page has loaded.
New articles, one framework, and what we are seeing in AI and search. Once a month, five minutes to read.
Reading is a good start. A 30 minute call with a senior lead is faster.