Bug 305251

Summary: High INP (Interaction to Next Paint) for interactions with no immediate screen updates
Product: WebKit Reporter: Barry Pollard <barry>
Component: WebCore Misc.Assignee: Franco Vieira de Souza <franco_vieira>
Status: RESOLVED FIXED    
Severity: Normal CC: franco_vieira, rreno, ryan, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Mac (Apple Silicon)   
OS: macOS 15   

Barry Pollard
Reported 2026-01-10 00:39:46 PST
When I visit this simple demo page: https://www.tunetheweb.com/experiments/event-timing/ and click on the `<h1>` I see PerformanceEventTiming entries (used to measure INP) of 504ms or more when it should be much closer to 150ms. I even see it when there are no event handlers at all: https://www.tunetheweb.com/experiments/event-timing/no-event-handlers.html Curiously I don't often see it with this more complex page: https://chrome.dev/inp-demo/ That has a widget causing constant frame updates - Maybe that is why? So here's a copy of my origin demo that does a screen update: https://www.tunetheweb.com/experiments/event-timing/with-update.html And now pointerup/click is as expected, and usually too fast to even register (except for the first first-input). We still see a somewhat slow pointerdown, so let's add an event handler to that: https://www.tunetheweb.com/experiments/event-timing/with-both-updates.html And now that's also fixed. If there is no screen update to make, then `first-input` and `event` should return quickly/almost instantly rather than appear to show a poor responsiveness. I can't see this explicitly mentioned in the spec (https://w3c.github.io/event-timing/#sec-performance-event-timing) but it's how Chrome and Firefox work.
Attachments
Alexey Proskuryakov
Comment 1 2026-01-12 13:54:33 PST
Thank you for the report!
Radar WebKit Bug Importer
Comment 2 2026-01-12 13:59:55 PST
Franco Vieira de Souza
Comment 3 2026-01-14 10:03:14 PST
EWS
Comment 4 2026-01-24 01:31:36 PST
Committed 306142@main (8af8a7cdd78d): <https://commits.webkit.org/306142@main> Reviewed commits have been landed. Closing PR #56574 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.