Browser & Web Performance · Middle · Question 16 of 75
A search box filters a 5 000-item list on every keystroke and typing feels laggy. Which fix helps INP the most?
- ✓Correct answer: Update the input immediately and debounce or defer the expensive filtering
- 2Add
will-change: contentsto the list - 3Load the list with
rel=preload
Explanation
The keystroke's frame should only show the typed character. The heavy list update can happen later or in smaller chunks.