// blog

Senior frontend deep-dives.

Primary sources only — ECMA-262, WHATWG HTML, Blink & V8 source. Every post ships an interactive demo you can break.

/primary sources
method → proof → demo
ECMA-262WHATWGCSSOMW3C Event TimingReact sourceBlinkV8Anthropic docsECMA-262WHATWGCSSOMW3C Event TimingReact sourceBlinkV8Anthropic docs
fetch
spec
grep
anchor
quote
verbatim
ship
demo
18
posts
31
canvases
51
primary sources

React Deep-Dives

3 posts

The Runtime

5 posts
The RuntimenewApr 19, 2026·10 min read

Closures don't capture variables — they capture environments

Every senior FE dev can explain closures. Almost nobody points to the ECMA-262 Environment Record and the [[Environment]] slot on function objects. Here's the spec-level story, with a step-through of the heap and a primary-source walk of why `let` fixes the for-loop trick.

#closures#environment-records#spec#v8#scope
The RuntimenewApr 19, 2026·7 min read

for await…of is serial — not streaming, not parallel

Every senior JS dev reaches for `for await of` when iterating async sources. Almost nobody realises the ECMA-262 algorithm awaits each next() before the body runs, and the body before the next next(). Here's the spec, two timeline animations, and the three iteration patterns you actually want in your toolbox.

#async#iterators#for-await-of#spec#concurrency
The RuntimenewApr 18, 2026·17 min read

The microtask checkpoint nobody explains

Every senior FE dev knows Promise.then runs before setTimeout. Almost nobody can point to the exact step in the HTML spec that makes it true — or explain why queueMicrotask inside a microtask doesn't yield. Here's the walk-through, straight from ECMA-262 and WHATWG.

#event-loop#microtasks#promises#spec#v8
The RuntimenewApr 18, 2026·10 min read

setTimeout(fn, 0) is never 0ms

Every FE dev knows setTimeout isn't instant. Almost nobody can quote the HTML Timers clamping rules, V8's timer backend, or explain why nested timeouts floor to 4ms. Here's the tour, primary sources only.

#settimeout#timers#spec#v8#throttling
The RuntimenewApr 18, 2026·13 min read

What await actually desugars to

Every senior FE dev has written async/await. Almost nobody can show you the generator and Promise chain underneath. Here's the desugaring straight from ECMA-262, ending with a 40-line implementation you can step through in a REPL.

#async-await#promises#generators#spec#v8

Rendering Pipeline

4 posts
Rendering PipelinenewApr 19, 2026·6 min read

Container queries — the layout primitive CSS spent 15 years missing

Media queries ask 'how big is the viewport?'. That's the wrong question for a component. Container queries ask 'how big is the slot this component was dropped into?' — which is the question any reusable component has always needed to answer. Here's the spec, the four `container-type` values, and the migration that replaces every sidebar-vs-main-content branch.

#css#container-queries#responsive#design-systems
Rendering PipelinenewApr 19, 2026·7 min read

CSS containment is the spec's performance escape hatch

Layout thrashing posts tell you what not to do. `contain: layout` tells the browser a subtree's effects won't escape — so they don't, and perf scales. Most senior FE devs have never shipped it. Here's the four-value contract, a blast-radius visualizer, and the two-line shorthands.

#css#containment#performance#spec#rendering
Rendering PipelinenewApr 19, 2026·10 min read

From JS to pixel: the browser's rendering pipeline in five stages

Every senior FE dev says 'render' like it's one thing. The browser's pipeline is five distinct stages — JS, style, layout, paint, composite — each with its own cost curve and its own short-circuit rules. Here's the stage-by-stage walk, with a property-to-stage mapper you can tap.

#rendering#paint#composite#layout#performance#spec
Rendering PipelinenewApr 19, 2026·8 min read

Layout thrashing is a spec-defined hazard, not a perf tip

Every senior FE dev knows 'don't read after write'. Almost nobody can point to the WHATWG rendering algorithm that makes it a hazard or the CSSOM clauses that force layout on read. Here's the spec-level story and a live counter you can watch tick.

#rendering#layout#cssom#spec#performance

Performance

2 posts

System Design

2 posts

Agentic / LLM FE

2 posts
// subscribe

One email per post. No other mail.

Free. No tracking, no affiliate links, no digests. One-click unsubscribe in every email — honoured by Gmail and Apple Mail's native unsubscribe button.

By subscribing, you agree to receive one email per post at this address. Unsubscribe any time — one click, no confirmation.