ESC

Type to search the knowledge base.

Browser Internals

Guides in Browser Internals. Written like documentation — short paragraphs, real examples, interview-relevant depth.

Browser Rendering Pipeline

intermediate

From bytes to pixels — parse, style, layout, paint, composite — and how your JS/CSS kicks each stage.

intermediate

CORS Explained for Frontend

intermediate

Why the browser blocks cross-origin responses, what Access-Control-* headers mean, preflight, credentials, and how to fix real frontend errors.

intermediate

How Browsers Load a Page

beginner

End-to-end navigation: resolve URL, fetch HTML, discover resources, parse, and get first pixels — without magic.

beginner

Critical Rendering Path

intermediate

What blocks first paint and LCP on initial load — HTML, CSS, fonts, and scripts — and how to shorten the path without rehashing the full pipeline.

intermediate

DOM CSSOM Render Tree

intermediate

How HTML and CSS become DOM and CSSOM, how the render tree filters display:none, and what blocks construction.

intermediate

Reflow vs Repaint

intermediate

Layout (reflow) vs paint (repaint): which CSS/DOM changes trigger which, and how to keep animations cheap.

intermediate

Compositor Layers

advanced

When browsers promote layers, why transform/opacity animate cheaply, and layer explosion costs.

advanced

Main Thread vs Compositor Thread

advanced

What runs on the main thread vs compositor, why scroll can be smooth while clicks feel dead, and fix strategies.

advanced

Browser Networking 101

intermediate

DNS, TCP/TLS, HTTP/1.1 vs H2/H3, connection reuse, and what frontend code can actually influence.

intermediate

HTTP Caching Headers

intermediate

Cache-Control, ETag, Last-Modified, Vary, and immutable fingerprinting patterns for static vs HTML.

intermediate

Service Workers Overview

advanced

SW lifecycle install/activate/fetch, scope, update story, and what belongs in a service worker vs the page.

advanced

Cache Storage API

advanced

Precache and runtime cache with the Cache API: match, put, strategies, and how it differs from HTTP cache.

advanced

Preflight OPTIONS Requests

intermediate

When browsers send CORS OPTIONS preflights, which headers to return, caching Max-Age, and SPA debug tips.

intermediate

Content-Type and MIME Sniffing

intermediate

Why Content-Type matters, how MIME sniffing works, X-Content-Type-Options: nosniff, and XSS-ish pitfalls.

intermediate

Same-Origin Policy

intermediate

Origin tuple (scheme/host/port), what SOP blocks, and how CORS, postMessage, and cookies relate.

intermediate

Browser Storage Comparison

beginner

Cookies, localStorage, sessionStorage, IndexedDB, Cache Storage — capacity, persistence, and when each is the wrong tool.

beginner

BFCache Back Forward Cache

advanced

How the back/forward cache freezes pages for instant history nav, what blocks it, and how to restore state safely.

advanced

Page Lifecycle Events

intermediate

active, passive, hidden, frozen, discarded — Page Lifecycle states and the events you should actually use.

intermediate

visibilitychange and Page Hide

intermediate

visibilitychange, pagehide, and pageshow: flush analytics, pause media, and survive mobile backgrounding.

intermediate

Navigation Timing API

advanced

PerformanceNavigationTiming phases from startTime to loadEventEnd for document load diagnostics.

advanced

Resource Timing API

advanced

PerformanceResourceTiming for every subresource: durations, transferSize, initiatorType, and RUM waterfalls.

advanced

PerformanceObserver

advanced

Subscribe to performance entries safely: entry types, buffered flag, observe patterns, and RUM use.

advanced

Long Tasks API

advanced

Detect main-thread tasks over 50ms with PerformanceObserver longtask entries and fix INP-killing work.

advanced

Layout Instability API CLS

advanced

LayoutShift entries, value calculation, hadRecentInput, and how to attribute CLS in the field.

advanced

Event Timing for INP

advanced

Event Timing API fields that power INP: input delay, processing, presentation delay, and attribution.

advanced

Browser DevTools Network Panel

beginner

Read waterfalls, timing phases, headers, throttling, and initiator chains in the Network panel like a production debugger.

beginner

Browser DevTools Performance Panel

intermediate

Record main-thread timelines: long tasks, style/layout/paint, frames, and how to turn flame charts into INP fixes.

intermediate

Memory Profiling Basics

advanced

Heap snapshots, allocation timelines, detached DOM nodes, and practical leak hunts in SPAs.

advanced

Throttling CPU and Network

beginner

DevTools CPU and network throttling: when lab numbers lie, custom profiles, and reproducing field pain.

beginner

User Agent Client Hints

advanced

Replace UA string parsing with Client Hints: Sec-CH-UA headers, critical hints, and privacy-aware adaptation.

advanced

Permissions Policy

advanced

Lock down camera, geolocation, payment, and other powerful features with Permissions-Policy headers and iframe allow.

advanced

Feature Policy Legacy Notes

advanced

Feature-Policy renamed to Permissions-Policy: migration notes, old header syntax, and what still matters.

advanced

Cross-Origin Opener Policy

advanced

COOP same-origin and same-origin-allow-popups: sever window.opener, process isolation, and OAuth popups.

advanced

Cross-Origin Embedder Policy

advanced

COEP require-corp / credentialless: cross-origin isolation, SharedArrayBuffer, and embedding requirements.

advanced

Trusted Types Intro

advanced

Trusted Types lock dangerous DOM sinks to typed values — policy design, CSP require-trusted-types-for, and DOM XSS.

advanced

Browser Extension Messaging Basics

advanced

How content scripts, background/service workers, and pages talk: runtime messaging, ports, and security boundaries.

advanced