Learning path · 5 articles
Browser internals
From a single task to a smooth page: scheduling, rendering, responsiveness, workers and memory.
- Inside the JavaScript Event Loop: Tasks, Microtasks and the Rendering StepsA precise mental model of how the browser schedules your code — tasks, microtasks, requestAnimationFrame and rendering — and how to use it to write UIs that never freeze.6 min read
- The Browser Rendering Pipeline: Writing 60fps AnimationsStyle, layout, paint and composite — what each stage costs, which CSS properties trigger which stages, and how to build animations that stay smooth with transforms, will-change, FLIP and the View Transitions API.6 min read
- Taming INP: A Practical Guide to Interaction to Next PaintINP replaced FID as a Core Web Vital. Learn how it's measured, how to find the slow interactions in your app, and the concrete techniques that cut it: yielding, deferring non-urgent work, React transitions and smaller DOMs.6 min read
- Off the Main Thread: Web Workers, Transferables and RPC in PracticeMove expensive work off the UI thread. Covers dedicated workers in modern bundlers, structured clone costs, zero-copy transferables, a promise-based RPC layer, SharedArrayBuffer with Atomics, and OffscreenCanvas.5 min read
- Hunting Memory Leaks in JavaScript ApplicationsHow garbage collection really decides what to keep, the five leak patterns behind most SPA memory issues, and a repeatable DevTools workflow using heap snapshots, allocation timelines and WeakRef-aware design.6 min read