Browser & Web Performance · Middle · Question 13 of 75
When are Web Workers a good fit for improving INP?
- 1For speeding up CSS animations
- 2For any code that updates the DOM
- ✓Correct answer: For CPU-heavy work that doesn't touch the DOM, like parsing large data or image processing
Explanation
Workers run on another thread and communicate via messages. They can't access the DOM directly.