Browser Internals
Guides in Browser Internals. Written like documentation — short paragraphs, real examples, interview-relevant depth.
Browser Rendering Pipeline
intermediateFrom bytes to pixels — parse, style, layout, paint, composite — and how your JS/CSS kicks each stage.
intermediate
CORS Explained for Frontend
intermediateWhy 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
beginnerEnd-to-end navigation: resolve URL, fetch HTML, discover resources, parse, and get first pixels — without magic.
beginner
Critical Rendering Path
intermediateWhat 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
intermediateHow HTML and CSS become DOM and CSSOM, how the render tree filters display:none, and what blocks construction.
intermediate
Reflow vs Repaint
intermediateLayout (reflow) vs paint (repaint): which CSS/DOM changes trigger which, and how to keep animations cheap.
intermediate
Compositor Layers
advancedWhen browsers promote layers, why transform/opacity animate cheaply, and layer explosion costs.
advanced
Main Thread vs Compositor Thread
advancedWhat runs on the main thread vs compositor, why scroll can be smooth while clicks feel dead, and fix strategies.
advanced
Browser Networking 101
intermediateDNS, TCP/TLS, HTTP/1.1 vs H2/H3, connection reuse, and what frontend code can actually influence.
intermediate
HTTP Caching Headers
intermediateCache-Control, ETag, Last-Modified, Vary, and immutable fingerprinting patterns for static vs HTML.
intermediate
Service Workers Overview
advancedSW lifecycle install/activate/fetch, scope, update story, and what belongs in a service worker vs the page.
advanced
Cache Storage API
advancedPrecache and runtime cache with the Cache API: match, put, strategies, and how it differs from HTTP cache.
advanced
Preflight OPTIONS Requests
intermediateWhen browsers send CORS OPTIONS preflights, which headers to return, caching Max-Age, and SPA debug tips.
intermediate
Content-Type and MIME Sniffing
intermediateWhy Content-Type matters, how MIME sniffing works, X-Content-Type-Options: nosniff, and XSS-ish pitfalls.
intermediate
Same-Origin Policy
intermediateOrigin tuple (scheme/host/port), what SOP blocks, and how CORS, postMessage, and cookies relate.
intermediate
Browser Storage Comparison
beginnerCookies, localStorage, sessionStorage, IndexedDB, Cache Storage — capacity, persistence, and when each is the wrong tool.
beginner
BFCache Back Forward Cache
advancedHow the back/forward cache freezes pages for instant history nav, what blocks it, and how to restore state safely.
advanced
Page Lifecycle Events
intermediateactive, passive, hidden, frozen, discarded — Page Lifecycle states and the events you should actually use.
intermediate
visibilitychange and Page Hide
intermediatevisibilitychange, pagehide, and pageshow: flush analytics, pause media, and survive mobile backgrounding.
intermediate
Navigation Timing API
advancedPerformanceNavigationTiming phases from startTime to loadEventEnd for document load diagnostics.
advanced
Resource Timing API
advancedPerformanceResourceTiming for every subresource: durations, transferSize, initiatorType, and RUM waterfalls.
advanced
PerformanceObserver
advancedSubscribe to performance entries safely: entry types, buffered flag, observe patterns, and RUM use.
advanced
Long Tasks API
advancedDetect main-thread tasks over 50ms with PerformanceObserver longtask entries and fix INP-killing work.
advanced
Layout Instability API CLS
advancedLayoutShift entries, value calculation, hadRecentInput, and how to attribute CLS in the field.
advanced
Event Timing for INP
advancedEvent Timing API fields that power INP: input delay, processing, presentation delay, and attribution.
advanced
Browser DevTools Network Panel
beginnerRead waterfalls, timing phases, headers, throttling, and initiator chains in the Network panel like a production debugger.
beginner
Browser DevTools Performance Panel
intermediateRecord main-thread timelines: long tasks, style/layout/paint, frames, and how to turn flame charts into INP fixes.
intermediate
Memory Profiling Basics
advancedHeap snapshots, allocation timelines, detached DOM nodes, and practical leak hunts in SPAs.
advanced
Throttling CPU and Network
beginnerDevTools CPU and network throttling: when lab numbers lie, custom profiles, and reproducing field pain.
beginner
User Agent Client Hints
advancedReplace UA string parsing with Client Hints: Sec-CH-UA headers, critical hints, and privacy-aware adaptation.
advanced
Permissions Policy
advancedLock down camera, geolocation, payment, and other powerful features with Permissions-Policy headers and iframe allow.
advanced
Feature Policy Legacy Notes
advancedFeature-Policy renamed to Permissions-Policy: migration notes, old header syntax, and what still matters.
advanced
Cross-Origin Opener Policy
advancedCOOP same-origin and same-origin-allow-popups: sever window.opener, process isolation, and OAuth popups.
advanced
Cross-Origin Embedder Policy
advancedCOEP require-corp / credentialless: cross-origin isolation, SharedArrayBuffer, and embedding requirements.
advanced
Trusted Types Intro
advancedTrusted Types lock dangerous DOM sinks to typed values — policy design, CSP require-trusted-types-for, and DOM XSS.
advanced
Browser Extension Messaging Basics
advancedHow content scripts, background/service workers, and pages talk: runtime messaging, ports, and security boundaries.
advanced