Hadi Mobarra

Topics

Browser Internals

What the browser does with your code: scheduling, rendering, canvas and capture.

Open SourceDebugging

Why Safari Exported Blank Charts in Apache Superset

A chart export that worked everywhere except Safari led through SVG foreignObject, WebGL drawing buffers and tainted canvases. Here is the root cause, the fix that was merged, and the part I got wrong.

Nov 24, 2026 5 min read
JavaScriptBrowser Internals

Async Iterators, Generators and Web Streams in Practice

Process data incrementally instead of all at once. A practical tour of generators, async iteration, backpressure, and the Web Streams API — with examples for paginated APIs, streaming fetch responses and LLM-style token streams.

Nov 8, 2026 6 min read
CSSPerformance

The Browser Rendering Pipeline: Writing 60fps Animations

Style, 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.

Nov 8, 2026 6 min read
JavaScriptBrowser Internals

Inside the JavaScript Event Loop: Tasks, Microtasks and the Rendering Steps

A 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.

Nov 8, 2026 6 min read
JavaScriptPerformance

Off the Main Thread: Web Workers, Transferables and RPC in Practice

Move 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.

Nov 8, 2026 5 min read