SpinTheMic
Pro

Interview practice question

Investigating a memory leak with heap snapshots

Frontend Engineering · JavaScript Core · Experienced

Your web app's memory grows to over a gigabyte after an hour of use. Walk through how you'd find the leak.

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Reproduce with repeated action.
  • Take heap snapshots before/after.
  • Compare: growing object types, detached DOM.
  • Retainers path shows who holds references.
  • Fix and verify.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics