bfcache: How to Make Back Button Navigation Instant (and What Blocks It)
bfcache keeps a page frozen in memory so the back button restores it instantly. Here’s what blocks it, from unload listeners and Cache-Control: no-store to open connections, plus how I test it in DevTools and refresh stale data on restore.
Mock Service Worker (MSW): API Mocking for Tests and Local Development
How I use Mock Service Worker to mock APIs at the network level: Vitest setup, realistic handlers, five UI states to test, and browser mocking in dev.
The HTML dialog Element: Accessible Modals Without a Modal Library
How I replace custom modal libraries with the native HTML dialog element: showModal(), ::backdrop, form method=dialog and a focus checklist.
TypeScript satisfies Operator: Type-Safe Config Without Losing Inference
Type annotations quietly widen your config objects. Learn how the TypeScript satisfies operator and as const give you strict checks and precise inferred types, with real patterns and common mistakes.