Glossary term
What is retainer? Meaning for developers
The chain of references from a GC root to an object. It shows what keeps a leaked object alive.
Learn it properly · Scenario DebuggingLesson 4: Memory Leaks in Single-Page AppsTimers and listeners that are never cleared, detached DOM nodes, closures that hold big objects and caches that only grow. Also how to confirm a leak with heap snapshots.