Web Vitals & Performance (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)
Deep Dive into the INP Measurement Algorithm.
senior LevelSystem Design
In Simple Words: How Chrome computes your site's INP score:
- Every click, tap, and keypress interaction event (consisting of
pointerdown,pointerup,click) is tracked as a group. - The duration of an interaction is calculated as the time from the earliest event to when the next frame finishes painting.
- For pages with $<50$ interactions, the worst interaction is the INP.
- For pages with $>50$ interactions, Chrome ignores 1 high interaction for every 50 interactions (to eliminate statistical outliers) and takes the 98th percentile.