~/talk

Memory Leaks and the Havoc They Wreak

Talkat CascadiaJS 2020 · 2020-09-01..09-02· [javascript, web-performance]
slides:none on file

JavaScript engines reclaim unreachable objects but can’t detect everything, so closures and forgotten listeners often keep things alive. Chrome and Firefox DevTools get used to take a heap snapshot before and after interactions, compare diffs, and reveal piles like detached DOM nodes — one example surfaces a thousand of them — or strings that show a tenfold increase. Advice: remove event listeners, dispose third‑party resources, prefer LRU caches, and try performance.measureMemory in origin trial for production footprints.

AI-written summary · about

  1. 0:00Intro
  2. 3:08The Stack
  3. 6:07Snapshots
  4. 10:08Common Mistakes
  5. 14:43Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.