Browser & Web Performance · Senior · Question 22 of 75
Why are rendering updates in requestAnimationFrame sometimes a hidden source of poor INP?
- 1rAF runs on a worker and can't update the DOM
- ✓Correct answer: rAF callbacks run before the next paint, so heavy work there adds directly to presentation delay
- 3rAF callbacks are skipped after input
Explanation
Moving expensive work into rAF doesn't remove it from the critical path of the frame that shows the interaction's result.