Hadi Mobarra

Topics

Performance

Measuring and improving how fast pages load and respond, with numbers rather than checklists.

PerformanceNext.js

I Cut This Site's JavaScript by 45%, and Blocking Time Didn't Move

Removing 127 KB of JavaScript halved the time to largest paint and did almost nothing for Total Blocking Time. What I measured, what I ruled out, and a font mistake that CI caught.

Nov 24, 2026 5 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
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
PerformanceCore Web Vitals

Taming INP: A Practical Guide to Interaction to Next Paint

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

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
Next.jsReact

Shipping a Static Next.js Site: Seven Things the Docs Won't Warn You About

Metadata that silently disappears, two root layouts, social images without extensions, icons paid for twice. Lessons from rebuilding this bilingual site with Next.js 16 and static export.

Dec 15, 2024 4 min read
PerformanceCore Web Vitals

A Front-End Performance Workflow That Survives Real Users

Measure in the field, find the one metric that hurts, break it into parts, fix the largest part, and put a budget on it. A workflow for LCP, INP and CLS, with numbers from a real site.

Nov 20, 2024 5 min read