~/talk

Understand, find, prevent and fix memory leaks in JavaScript

Talkat JSFoo 2015 · on Friday, 2015-09-18· [web-performance, javascript]
slides:none on file

Explains how JS garbage collection actually keeps objects alive when any reference exists, demonstrates take heap snapshot and timeline comparisons in Chrome DevTools, shows a 1,000×5‑byte array example (≈5KB) and how two 5KB subarrays cause a retaining tree to keep 10KB, and points out detached DOM tree leaks. Loads a remark slideshow, profiles slide changes, finds no slide leak but identifies minified closures and orphan DOM nodes to fix.

AI-written summary · about

  1. 0:00Start
  2. 0:08What is a memory leak
  3. 0:53Memory in JavaScript
  4. 2:10How much memory is used? #3
  5. 4:18Key takeaways
  6. 6:35Leaking DOM Nodes: Part 1
  7. 10:22Pass only what you need
~/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.