Frontend guides
React, Next.js, TypeScript, the web platform and machine coding rounds.
66 guides · Newest first · Updated
- Web Workers Explained: Moving Heavy JavaScript Off the Main ThreadWhat blocks the main thread, how to move parsing into a worker, what postMessage copying costs and when a worker backfires.Frontend · 19 min read ·
- Performance Budgets in CI: Lighthouse CI and Bundle-Size GatesPicking budget metrics, setting up Lighthouse CI and bundle-size gates, and stopping slow speed regressions.Frontend · 18 min read ·
- Embeddable Widget Design: Script vs Iframe, Shadow DOM and postMessageScript vs iframe embeds, Shadow DOM style isolation, safe postMessage contracts and protecting the host page's Core Web Vitals.Frontend · 22 min read ·
- Browser Extension Architecture: Content Scripts, Service Workers and PermissionsContent scripts, the service worker, the popup, message passing, permissions and store rules.Frontend · 23 min read ·
- In-App Notifications Explained: Badges, Toasts and Cross-Tab Read StateHonest badge counts, calm toast queues, accessible announcements and read state synced across tabs and devices.Frontend · 27 min read ·
- Image Pipeline System Design: Resizing, Formats, Cache Keys and Signed URLsPrecomputed vs on-the-fly resizing, AVIF and WebP negotiation, cache keys, original storage and HMAC-signed transform URLs.System design · 23 min read ·
- Faceted Search Explained: Filter URLs, Honest Counts and the Back ButtonFilters in the URL, pushState vs replaceState, popstate, honest facet counts and zero-result rules.Frontend · 22 min read ·
- Browser Code Editor Design: Piece Tables, Incremental Parsing and LSPWhy a textarea fails, how editors store text in piece tables and trees, re-parse only what changed, draw only visible lines and get language smarts from workers and LSP.Frontend · 28 min read ·
- Dashboard Frontend Design: Frame Budgets, Live Updates and DownsamplingFrame budgets, SVG vs canvas, push vs polling, requestAnimationFrame batching, LTTB and min-max downsampling, hidden tabs, resizing and accessible charts.Frontend · 32 min read ·
- DOMPurify's October 2026 Bypasses Explained: Audit Your Sanitiser ConfigWhich non-default options were exposed, what 3.4.17 fixes and how to audit your own config.Frontend · 18 min read ·
- Rich Text Editor Design: Document Model, Selections, Paste and UndoWhy contenteditable alone misleads, a document model kept apart from the DOM, selections, beforeinput, safe paste and undo.Frontend · 26 min read ·
- Sentry's September 2026 Next.js Flaw Explained: Why Middleware-Only Auth FailsHow tunnelRoute let requests skip middleware on webpack builds, who is affected and how to fix it.Frontend · 20 min read ·
- Spreadsheet Frontend Design: Virtualised Canvas, Formula Graphs and Copy-PasteVirtualised canvas rendering, a formula dependency graph with topological recalculation and cycle checks, selection ranges and clipboard formats.Frontend · 26 min read ·
- Angular 20 End of Life Explained: Upgrade to 22 Before 28 NovemberWhat stops on 28 November 2026, why ng update goes one major at a time, and what breaks from 20 to 21 to 22.Frontend · 26 min read ·
- Biome 2.6 Explained: What It Can Replace in Prettier, ESLint and StylelintWhat it can now replace in a Prettier, ESLint and Stylelint setup, what is still preview, and how to migrate safely.Frontend · 24 min read ·
- Electron 45 Explained (October 2026): Breaking Changes to Fix Before You UpgradeThe Chromium 156 upgrade, the preload, screen-sharing, tracing and safeStorage changes, and how to check each fix.Frontend · 26 min read ·
- Vitest's October 2026 Vulnerability Explained: How Test Servers Leaked SecretsWhich Vitest 5 test servers served .env files and tokens, why, and how to fix and check it.Frontend · 21 min read ·
- Web Font Loading Explained: Stop Invisible Text and Layout ShiftFOIT and FOUT, font-display, WOFF2, subsetting with unicode-range, variable fonts and metric-matched fallbacks.Frontend · 21 min read ·
- WebGPU Inference Explained: Running ML Models in the BrowserBrowser support, GPU buffer limits, the WebAssembly fallback, caching model weights and when a server is the better choice.Frontend · 20 min read ·
- Frontend Memory Leaks Explained: Detached DOM, Listeners and Heap SnapshotsHow forgotten listeners, timers, closures and caches keep removed DOM in memory, how to find them with heap snapshots, and how to fix and test them.Frontend · 22 min read ·
- JavaScript Code Splitting and Tree Shaking: How to Cut Bundle SizeDynamic import() chunks, sideEffects in package.json, why CommonJS blocks shaking and size budgets.Frontend · 22 min read ·
- Service Workers Explained: Offline-First Caching Without Stale AppsCaching strategies per file type, the install, waiting and activate lifecycle, and safe updates.Frontend · 21 min read ·
- Session Replay Explained: How DOM Recording Masks Passwords and PIIHow it records DOM snapshots and changes instead of video, how masking keeps passwords and PII out, what consent requires and how big recordings get.Frontend · 19 min read ·
- Storybook's October 2026 Vulnerabilities Explained: Lock Down Your Dev ServerHow a website or a Wi-Fi neighbour could write story files, what the fixed versions change and how to check your setup.Frontend · 20 min read ·