Browser & Web Performance · Senior · Question 21 of 75
How can garbage collection affect INP?
- 1GC runs only when the tab is in the background
- 2GC runs on the GPU and has no effect
- ✓Correct answer: Creating many short-lived objects during interactions leads to GC pauses on the main thread that add to latency
Explanation
Modern GCs are mostly concurrent, but allocation-heavy handlers still cause pauses. The Memory and Performance panels show them.