7 curated questions
Browser & Web Platform
The DOM, event loop, networking, storage, and browser internals.
- 01foundation · 9 min
How does DOM event propagation work?
Explain capture, target, bubble, composed paths, and delegation—including where propagation can be stopped.
- 02intermediate · 12 min
How do browser HTTP caches decide whether a response can be reused?
Distinguish freshness, validation, cache directives, validators, and shared-cache behavior.
- 03intermediate · 9 min
How do you cancel browser work when a user changes their mind?
Use AbortController as a cancellation signal and distinguish cancellation from failure.
- 04intermediate · 13 min
How do you load images without hurting performance or layout?
srcset, sizes, priority, lazy loading, dimensions, and the CLS/LCP trade-offs that show up in real pages.
- 05intermediate · 14 min
What happens between changing the DOM and pixels appearing on screen?
Trace style calculation, layout, paint, rasterization, compositing, and the limits of “GPU accelerated.”
- 06intermediate · 11 min
What problem does CORS solve, and when does a preflight happen?
Separate same-origin policy, server permission, preflight negotiation, and credentialed requests.
- 07advanced · 15 min
How do you think about stale-while-revalidate and offline UI?
Cache as a first-class state, revalidation, offline fallbacks, and the UX contracts users actually notice.