How Browser Works?
summary
Explains how HTML parsing, CSS style calculation and the render tree produce layout and paint work, and how the compositor short‑circuits repaints; shows that reflows are expensive when selectors cause large style recalculations and that CSS specificity and selector depth measurably slow rendering. Describes the event loop with micro/macro tasks, IndexedDB, and Resource Timing style measurements that reveal per‑resource timings (example: a critical resource stalled total first render ~850ms). Cites six parallel connections, the danger of render‑blocking resources, and the claim that shaving 100ms of first‑render time yields huge revenue impact.
AI-written summary · about
chapters (17)
- 0:00Introduction to browser internals
- 1:08Why browser performance matters
- 3:48Resource loading bottlenecks
- 8:05Impact of 850ms delay on revenue
- 10:11Modern browser architecture
- 11:37JavaScript event loop basics
- 13:05Micro and macro tasks in browsers
- 15:22Rendering pipeline overview
- 16:33CSS parsing and layout
- 18:27Render-blocking resources
- 20:14Parallel processing in browsers
- 23:44CSS specificity and performance
- 26:49Layout calculations complexity
- 28:00Repaint and reflow triggers
- 30:12Optimizing page load time
- 30:54CSS selector performance impact
- 32:03Right-to-left rendering performance
