Skip to content

JS Memory Leak School

A hands-on course on JavaScript memory leaks — browser and server

Fundamentals

Stack vs heap, references, garbage collection, and how V8 powers Chrome and Node.

Browser leaks

Live interactive demos for timers, detached DOM, listeners, closures, and caches.

Node.js leaks

Runnable scripts for server-side patterns — run with node --inspect.

Detect & debug

DevTools, heap snapshots, retainers, log signatures, and monitoring graphs.

Work through the sidebar in order. Each lesson includes:

  • What & why — the mental model behind the leak
  • Diagrams — Mermaid visuals for retention and GC
  • Broken vs fixed code — side-by-side examples
  • Hands-on — browser demos or Node scripts you run locally