Web Platform
Browser APIs, HTML semantics and standards that need no library.
2026
- Guard innerHTML with Trusted TypesEnforce Trusted Types for an innerHTML preview, let a named policy return fixed markup, and insert the summary as text.
- Intercept SPA routes with the Navigation APIUse one navigate handler for link clicks and Back while preserving direct loads and normal navigation outside your routes.
- Open dialogs with command and commandforConnect a button to a dialog or popover by ID, then check its keyboard behavior and provide a path for older browsers.
- Build an accordion with details nameGroup native details elements with a shared name so an FAQ closes the previous answer when a reader opens another, without a click handler.
2025
- Render components with declarative shadow DOMShip a shadow root in the initial HTML so a web component can render its styled content before its JavaScript loads.
- Gzip uploads from the browserUse CompressionStream to gzip a JSON upload in the browser and tell the receiving server how to decode the request body.
- Web Push for iOS Home Screen appsEnable Web Push in an iPhone Home Screen web app by preparing its service worker and subscribing on a tap.
- How stale-while-revalidate worksUse Cache-Control to set how long a cache may serve a stale response while refreshing it in the background.
- Format "3 days ago" with Intl.RelativeTimeFormatUse Intl.RelativeTimeFormat to write labels such as "3 days ago" and "yesterday" in the reader’s locale.
- Import JSON modules with import attributesUse the type: json import attribute to load a JSON module in Node or a browser, with static or dynamic imports.
- Build a dropdown with the popover attributeUse popover and popovertarget to build an account menu that opens, closes on Escape or an outside click, and needs no JavaScript.
2024
- Measure INP in the field by phaseINP replaced FID as a Core Web Vital in 2024. Log it from real visits with web-vitals and read input delay, processing, and presentation delay.
- Validate a URL with URL.canParseUse URL.canParse to check whether a string parses and apply a separate protocol check for HTTP links.