Performance regressions · mid
INP and render regressions after a release
When interactions become slow after a release, you split the time into input delay, processing and presentation, find the slow interaction with field data, and test on a slow phone, not a laptop.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- INP thresholds: good is 200 ms or less, poor is over 500 ms, at the 75th percentile, with mobile and desktop separate. CrUX is a 28-day rolling window, so it moves slowly after a fix; your own RUM shows the change sooner.
- Split an interaction into input delay, processing time and presentation delay. Find the slow interaction with RUM attribution (the web-vitals attribution build, Long Animation Frames).
- Reproduce with 4x to 6x CPU throttling or on a real low-end Android phone, because a laptop hides the problem.
- Typical causes: a new search box filters a 3,000-item list and re-renders every row on each keystroke, and a new analytics handler does slow synchronous work on each input.
- Fixes: keep the input update urgent and the list update non-urgent (useDeferredValue or startTransition), virtualise the list, debounce analytics and move it off the input path, and yield to the main thread (scheduler.yield() where supported, or setTimeout). React Compiler or memo for rows.
- Re-render storms: a clock that updates every second in a context re-renders every consumer. memo does not stop it. Move the state into the one component that shows it, split the context, read through a store with selectors, or virtualise.
- Prevent: a RUM alert on p75 INP per page type, interaction traces with throttling in CI, and profiling new list-heavy features on a low-end phone.
- Tell the business the user impact, the plan and when field data will show the fix.
The red pen
Common traps: mistake → fix
Mistake: Lighthouse score is fine, so INP is fine
Fix: INP needs real interactions; use field data.
Mistake: memo stops all re-renders
Fix: not when a context value the rows read changes.
Mistake: It is smooth on my laptop
Fix: low-end phones are 4 to 6 times slower.
Easy to hard
Questions interviewers ask, easy to hard
- INP got worse after a release. How do you investigate?
- What are the parts of an interaction?
- How do you make typing in a search box feel instant with a large list?
- How long until CrUX shows your fix?
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.