Browser Internals — Senior Interview Prep
How the browser actually works: the event loop, the rendering pipeline, DOM/BOM/CSSOM trees, storage layers, service workers, web workers, real-time transports, HTTP caching, and CORS. The senior threshold isn’t trivia — it’s being able to explain why a behavior happens and predict edge cases from first principles.
Files
Why “browser internals”?
Most “weird browser bug” investigations trace back to one of:
- Task ordering confusion (microtask vs animation frame).
- Layout / paint cost invisible until profiled.
- Cache layering (browser cache, service worker cache, HTTP cache, app cache) interacting.
- CORS subtleties (credentials, preflight, vary).
- Worker boundaries (no DOM access, structured-clone vs Transferable).
A senior front-end can localize a bug to the right layer in one or two questions because they have the mental model.
Cross-references
- Performance impact (Web Vitals): ../15_performance/
- HTTP basics (versions, semantics): ../../backend/12_protocols/http/
- Frontend security (CORS-adjacent): ../17_security/
- Networking primer: ../../backend/28_networking/