How to diagnose a slow click when INP is over 200 ms

Short answer

If field INP is over 200 ms, reproduce a slow interaction and record it in Chrome DevTools. Find which phase takes longest: waiting for the handler, running it, or waiting for the next paint. Fix that phase and repeat the same interaction several times.

Read the guide
Share

Summarize with ChatGPT or Perplexity

How to diagnose a slow click when INP is over 200 ms

For general speed context, see how to fix LCP image request discovery. If you want a before/after reporting workflow, use compare Lighthouse reports before and after. Use Reproleaf for adjacent technical SEO checks. Record the click in DevTools.

Download the evidence (JSON) · Before trace · After trace

What a slow click really means

An INP problem is not the same thing as a slow page overall. A single interaction can be bad even when other parts of the page feel fine, and one lab click does not prove the field metric or the rank of the page. Here the subject is a synthetic interaction in Chromium 157.0.8103.79, with no network throttling, no CPU throttling, and no Lighthouse score claims.

In Chrome DevTools Performance, the trace must be tied to the actual interaction. Look for the labels INP and AFTER CLICK to locate the event and what followed it. Then compare HANDLER / BEFORE with HANDLER / AFTER. The footer summary should read INPUT / PROCESSING / PAINT, because that is the easiest way to see whether the time was spent waiting, running, or rendering.

With the Event Timing API, the core formulas are straightforward. Input delay is processingStart - startTime. Processing is processingEnd - processingStart. If you estimate presentation delay, you can look at duration - inputDelay - processing, but duration is quantized, and the estimated presentation segment is clamped after subtraction. That is why independently computed medians do not have to add up perfectly.

Use 200 ms or less at the 75th percentile as the field target, with mobile and desktop inspected separately. A lab click identifies where time went. Field data tells you how common the delay is among real visits.

Worked comparison: before and after the fix

The before version did too much work before the first visible response. The after version updated the UI immediately and deferred the noncritical work. That does not mean every setTimeout is the right answer; in this article it is only a scheduling proxy for deferred work. In real code, chunking the work or moving it to a worker can be more appropriate.

SymptomPossible causeHow to checkHow to fixEvidence the fix worked
The click feels like a pause before anything happensThe main thread is busy before the event gets handledFind INP in the trace and inspect the lead-in before HANDLER / BEFORERemove long synchronous tasks from the critical path and defer noncritical workInput delay shrinks; in the measured rows the median inputDelay is 0.8 ms in both variants, so the delay was not the main issue
The UI updates only after a long stallThe handler does too much before the first paintCompare HANDLER / BEFORE and HANDLER / AFTER on the same clickDo the immediate UI update first, then move heavy work after the first paintMedian processing drops from 235.2 ms to 24.3 ms, and duration drops from 248 ms to 32 ms
The click improved, but follow-up clicks still feel riskyDeferred work is still too large or overlaps with later inputTest several clicks in a row, not just oneSplit the work into smaller chunks or move it off the main threadRepeated clicks do not build a new long tail of processing
The lab screenshot looks good, but users still complainYou measured a generic metric instead of the real interactionMatch the trace to the actual click and its labelsDiagnose the event, not only the page summaryThe trace clearly shows event, processing, and paint on one timeline
Three click measurements per variant, recorded using Event Timing.
Three click measurements per variant, recorded using Event Timing.

The six measured clicks show the change clearly. Before the fix, the three runs were 240, 248, and 248 ms for duration; after the fix, they were 32, 32, and 32 ms. The medians are 248 ms before and 32 ms after. Input delay stays at a median of 0.8 ms in both versions, while processing falls from 235.2 ms to 24.3 ms. That points to the real problem: not waiting to start, but spending too long inside the handler and delaying the first visible response.

Read those numbers together with the phase model. Before the fix, most of the time sits in processing; after the fix, the immediate UI update is short and the deferred work moves beyond the first paint. In the JSON evidence, the exact fields are duration, inputDelay, processing, and presentationEstimate. The median presentationEstimate falls from 12 ms to 6.9 ms, but it does not have to match a simple subtraction exactly because duration is quantized and the estimate is clamped after subtraction.

What changed in the handler

The original handler simulated 235 ms of synchronous work. The second version left 24 ms before the visual update and scheduled 211 ms as a separate task. Median input delay stayed at 0.8 ms. The change targeted processing. If production computation remains heavy, split suitable work into smaller tasks or consider a Worker.

Inspect the click in Chrome DevTools

  1. Open Performance, start recording, perform the slow action once, and stop.
  2. Select the event in Interactions and compare input delay, processing time, and presentation delay.
  3. Inspect Main. Look before the handler for tasks blocking input, inside it for synchronous computation, or after it for style, layout and painting work.
  4. Repeat the click before and after the change under the same conditions. Then test several quick clicks: deferred work can overlap the next interaction.

Open the fixture trace files with Load profile in Performance. The traces were recorded separately from the six timing runs.

Reader checklist

  • I am looking at one concrete interaction, not a generic page score.
  • I can find INP and AFTER CLICK in the trace.
  • I can compare HANDLER / BEFORE with HANDLER / AFTER.
  • I know how to read startTime, processingStart, and processingEnd.
  • I test more than one click, because overlap matters.
  • I do not treat setTimeout as a universal fix.
  • I either chunk the work or move expensive work off the main thread when the architecture allows it.

Quick Q&A

Does INP over 200 ms automatically mean the page is bad?
No. It means at least one interaction was slow. You still need to identify which part of the interaction consumed the time.

Why do the numbers not add up perfectly?
Because duration is quantized, and the presentation estimate is clamped after subtraction. The components are useful for diagnosis even when the arithmetic is not exact.

Is setTimeout enough to fix it?
Not always. It can be a useful deferred-work proxy in a lab example, but real production code may need chunking or a worker.

Why should I test multiple clicks?
Because deferred work can overlap with later input. One good click does not prove the problem is gone.

What counts as proof of improvement?
A lower processing time, an earlier first paint after the click, and no long tail across repeated interactions.

If content shifts before the interaction, investigate layout stability using How to fix layout shifts from images without explicit width and height.

← Back to blog

Need help with your website?

Development and SEO services →

Related articles