Interview practice question
Memory keeps growing in a single-page app
Frontend Engineering · JavaScript Core · Intermediate
Memory usage in your single-page app grows every time users navigate between pages. What are likely causes, and how do you fix them?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Listeners/timers not removed on unmount.
- Subscriptions and observers.
- Caches without limits.
- Detached DOM references.
- Heap snapshots to compare.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.