Series

Frontend System Design Interview Prep

A complete guide to acing frontend system design interviews — from the RADIO framework to real-world component designs asked at FAANG.

5 articles · View series →

Browser Concurrency

A practical guide to sharing data and coordinating work across browser threads — tabs, workers, and shared memory.

3 articles · View series →

  1. deep-diveMarch 29, 2026

    Measuring multiline text height in JavaScript has always been a hack. Pretext changes that — using canvas measureText and pure arithmetic to give you exact heights and line counts without touching the DOM. Learn how it works and when to use it.

  2. deep-diveMarch 29, 2026

    SharedArrayBuffer lets multiple Web Workers read and write the same memory simultaneously. Atomics makes that safe by preventing race conditions. Learn how they work, when to use them, and how to enable them with COOP/COEP headers.

  3. tutorialMarch 29, 2026

    JavaScript tooltip overflow and viewport clipping is one of the most common UI bugs. The root cause: we don't know tooltip dimensions until after it renders. Pretext lets you measure tooltip content height and width before DOM insertion — eliminating the flicker and positioning bugs entirely.

  4. deep-diveMarch 29, 2026

    An orphan — a single word stranded on the last line of a paragraph — is a classic typography problem. CSS orphans only works in print. text-wrap: balance helps but has limits. This guide shows how to detect and fix screen orphans programmatically using JavaScript and pretext's walkLineRanges API.

  5. tutorialMarch 29, 2026

    CSS masonry layout still lacks browser support. The classic JavaScript approach — measuring offsetHeight in a loop — causes expensive DOM reflow. This tutorial shows you how to build a performant masonry grid using pretext, which computes exact card heights without touching the DOM.

  6. interviewMarch 28, 2026

    A complete frontend system design answer for the autocomplete / typeahead question. Covers requirements, component architecture, API design, debouncing, caching, keyboard navigation, and ARIA accessibility.

  7. interviewMarch 28, 2026

    A complete frontend system design answer for designing a chat application like Messenger or Slack. Covers real-time messaging with WebSockets, IndexedDB for offline support, message delivery states, optimistic UI, and cross-tab sync.

  8. interviewMarch 28, 2026

    A complete frontend system design answer for designing an image carousel component. Covers architecture, CSS layout with scroll snapping, lazy loading, image preloading, touch/swipe support, autoplay, keyboard navigation, and ARIA accessibility.

  9. interviewMarch 28, 2026

    A complete frontend system design answer for designing a news feed like Facebook or Twitter. Covers architecture, infinite scroll, real-time updates, optimistic UI, virtualization, and accessibility.

  10. tutorialMarch 22, 2026

    Transferable Objects let you move ArrayBuffers, ImageBitmaps, and other large data between Web Workers and windows without copying. Learn how they work and when to use them with postMessage and BroadcastChannel.

  11. tipsJanuary 03, 2021

    Implement Design Thinking in your problem-solving methodology

  12. interviewFebruary 16, 2015

    Interview tips for Frontend/User Interface developers