Browser & Web Performance · Senior · Question 22 of 75

Why are rendering updates in requestAnimationFrame sometimes a hidden source of poor INP?

Explanation

Moving expensive work into rAF doesn't remove it from the critical path of the frame that shows the interaction's result.

Further reading

Problem with a question

Browser & Web Performance · Senior · question 22

Test yourself

Take the Browser & Web Performance · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz