Interview practice question
Clicking a filter button freezes the page briefly
Frontend Engineering · Web Performance · Intermediate
Clicking a filter button on a product list freezes the page for half a second before anything happens. How would you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Profile the interaction.
- Show immediate feedback first, then heavy work.
- Break up work; yield.
- Reduce rendering cost (virtualise, memoise).
- Move computation off main thread.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.