Hadi Mobarra

Topics

JavaScript

How the language and its runtime behave: the event loop, proxies, streams, workers and memory.

Data PlatformsJavaScript

Resumable Uploads: What Happens When the Connection Drops

A large upload will be interrupted. This article walks through the TUS protocol request by request, with a live demo you can break, and the client-side decisions that make resuming reliable.

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
JavaScriptArchitecture

Building a Fine-Grained Reactivity System (Signals) From Scratch

Signals power Solid, Preact, Angular and Vue's reactivity. Build one in under 100 lines to understand dependency tracking, computed values, effects and glitch-free updates.

Nov 8, 2026 6 min read
JavaScriptPerformance

Hunting Memory Leaks in JavaScript Applications

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

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
JavaScriptArchitecture

Metaprogramming in JavaScript with Proxy and Reflect

Intercept property access, validation, and function calls with Proxy traps. Learn the invariants, the role of Reflect and receivers, and build a tiny reactive store, a validation layer and a negative-index array.

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