Skip to content
// writing

Posts tagged #web-apis

A mix of technical deep-dives, career reflections, and dispatches from the road.

CSS scroll-state() Queries: Styling Stuck, Snapped, and Scrollable thumbnail
developmentSep 6, 2026· 4 min
CSS scroll-state() Queries: Styling Stuck, Snapped, and Scrollable
Sticky headers, snapped carousel slides, and scroll shadows have all been JavaScript jobs for a decade. Scroll-state container queries hand that work back to CSS.
read more →
The Web Locks API: One Tab Does the Work, the Rest Wait thumbnail
developmentAug 27, 2026· 5 min
The Web Locks API: One Tab Does the Work, the Rest Wait
Your app already runs in five tabs at once, and they all think they are in charge. The Web Locks API gives the browser a real mutex so only one of them does the work.
read more →
Form-Associated Custom Elements: Web Components That Belong in a Form thumbnail
developmentAug 24, 2026· 4 min
Form-Associated Custom Elements: Web Components That Belong in a Form
Custom elements can be real form controls. Here is how formAssociated, ElementInternals, and setValidity retire the hidden-input hack for good.
read more →
Declarative Partial Updates: Out-of-Order HTML Streaming Without a Framework thumbnail
developmentAug 20, 2026· 4 min
Declarative Partial Updates: Out-of-Order HTML Streaming Without a Framework
Chrome 148 ships experimental support for filling HTML placeholders out of order and streaming markup into the DOM. Here's how the new template-for and streamHTML APIs work, and what they replace.
read more →
revalidateTag vs updateTag: Next.js Split Cache Invalidation in Two thumbnail
developmentAug 16, 2026· 4 min
revalidateTag vs updateTag: Next.js Split Cache Invalidation in Two
Next.js 16 gave cache invalidation two different functions instead of one, and the split maps to a real distinction: content that can lag versus content the user just typed.
read more →
Trusted Types Is Baseline: DOM XSS Is Now a Type Error thumbnail
developmentAug 10, 2026· 4 min
Trusted Types Is Baseline: DOM XSS Is Now a Type Error
Firefox 148 shipped Trusted Types in February 2026, making it Baseline. Here's how to turn every dangerous innerHTML assignment in your app into a TypeError you can actually catch.
read more →
The Long Animation Frames API: Find What Actually Broke Your INP thumbnail
developmentAug 9, 2026· 4 min
The Long Animation Frames API: Find What Actually Broke Your INP
Your field data says INP is 400ms. Your local profile says everything is fine. The Long Animation Frames API closes that gap by naming the script, the function, and the character position that stalled the frame.
read more →
CSS contrast-color(): Let the Browser Pick Your Text Color thumbnail
developmentAug 3, 2026· 4 min
CSS contrast-color(): Let the Browser Pick Your Text Color
The contrast-color() function went Baseline in April 2026 and kills the luminance-math helper every design system eventually writes. Here is how it works, the mid-tone problem nobody warns you about, and how to work around it.
read more →
The Sanitizer API: Safe HTML Injection Without DOMPurify thumbnail
developmentAug 2, 2026· 4 min
The Sanitizer API: Safe HTML Injection Without DOMPurify
The browser can now strip XSS from an HTML string during parsing. Here's how setHTML works, why its config can only narrow the allowlist, and how to ship it before Safari catches up.
read more →
CSS sibling-index() and sibling-count(): Native Staggering Without nth-child Hacks thumbnail
developmentJul 27, 2026· 4 min
CSS sibling-index() and sibling-count(): Native Staggering Without nth-child Hacks
CSS sibling-index() and sibling-count() turn an element's position into a number you can drop into calc(), replacing walls of nth-child rules and inline JavaScript for staggered animations and math-driven layouts.
read more →
// the newsletter
Don't miss the next one