JavaScript Set Methods: Clearer Rules Without Utility Code
Native JavaScript Set methods make permission checks, filters, and data reconciliation easier to read and safer to review.
Web development, AI engineering and notes from building businesses.
Native JavaScript Set methods make permission checks, filters, and data reconciliation easier to read and safer to review.
Use Node.js permissions to constrain file, process and network access, then layer them with containers and dependency controls.
Use CloseWatcher to make custom drawers and overlays handle Escape and device Back through one reliable lifecycle.
CSS reading-flow can align keyboard focus with intentional grid and flex layouts—without JavaScript focus traps or tabindex hacks.
Use Fetch Priority to help the browser start your true LCP image sooner—without overloading the network with high-priority requests.
Use HTML command and commandfor attributes to control dialogs and popovers with less JavaScript and more reliable native behaviour.
Use Document Picture-in-Picture to build focused always-on-top web companions, with a resilient state, styling, and fallback architecture.
Use AbortSignal.any() and AbortSignal.timeout() to cancel stale work, enforce budgets, and build more responsive JavaScript apps.
CSS @function brings reusable, parameterised value logic to stylesheets. Learn where it fits, how it works, and how to ship it safely.
Use JavaScript iterator helpers to build lazy, native pipelines for generators, collections, and large data sources.
Use CSS @scope to contain component styles, reduce selector sprawl, and modernise server-rendered UI without abandoning the cascade.
Use RegExp.escape() to safely insert literal text into dynamic JavaScript regular expressions, with migration and review guidance.
Use CSS field-sizing to build content-aware native inputs and textareas while keeping form layouts stable and accessible.
Use URLPattern to match and extract web routes in browsers and workers without fragile hand-written URL parsing.
Use CSS contrast-color() to keep token-driven text legible, with practical fallbacks and accessibility limits for production UI.
Trusted Types turns risky DOM HTML and script sinks into enforceable security boundaries for modern web applications.
Use the Cookie Store API to replace brittle document.cookie parsing with async, service-worker-aware cookie management.
Use bfcache to make back and forward navigation feel instant, then measure and debug restores in production.
Use CSS scroll-state queries to style sticky, scrollable, and snapped components without brittle scroll listeners.
Use JavaScript import attributes to load JSON modules explicitly, migrate from assertions, and avoid runtime and bundler pitfalls.
WebAssembly JSPI lets compiled code await JavaScript promises. Learn where it fits, how to deploy it, and why a fallback still matters.
Use Declarative Shadow DOM to ship scoped, server-rendered web components before JavaScript loads.
CSS Masonry can simplify packed card layouts. Learn how to ship it safely with a resilient grid fallback and accessible content order.
Use CSS sibling-index() and sibling-count() to create staggered animations and adaptive repeated UI without presentation-only JavaScript.