Squarespace & Web Standards: How We Helped Bring HTML Video & Audio Lazy Loading to Today’s Browsers
Squarespace engineers proposed and landed loading="lazy" for HTML <video> and <audio> in the WHATWG HTML Standard (merged March 23, 2026). The attribute defers fetching media resources, poster images and autoplay until the element is visible, removing the need for JavaScript workarounds for the web's heaviest asset type. The team also contributed more than 30 Web Platform Tests and wrote patches for Firefox and WebKit, while a Chromium implementation shipped in Chrome 147 behind a flag and is enabled by default in Chrome 148. The process ran from a hackathon prototype through an HTML issue, a spec PR, vendor standards positions and browser code review, and shows that full-stack web developers can contribute directly to the platform.
Related posts
- How To Use Standard HTML Video & Audio Lazy-Loading on the Web Today
Squarespace Engineering mediumAdeptHTML <video> and <audio> elements now accept the same loading="lazy" attribute as images and iframes, deferring media, poster images and even autoplay until the element is visible near the viewport. Practical guidance covers setting width/height or aspect-ratio to avoid layout shift, pairing preload="none" with poster, keeping muted and playsinline for autoplay, and including controls on audio so it is visible enough to trigger loading. Avoid lazy loading above-the-fold media because it delays fetches until after layout and can hurt Largest Contentful Paint. Support can be detected with 'loading' in HTMLMediaElement.prototype; Chrome 148 ships it by default, and Squarespace-contributed Firefox and WebKit implementations are in review.
- How we improved image download sizes on Medium with just four characters
Medium Engineering mediumAdeptAdding "auto" to the sizes attribute of lazy-loaded images lets the browser pick the best srcset candidate from the actual layout, with no hand-written breakpoint rules. Medium saw roughly 7% smaller image downloads on its home feed on some displays. The explanation covers why <picture>, srcset and sizes exist: browsers fetch images before layout, so sizes must otherwise be hand-calculated. Unsupported browsers ignore the unparseable "auto" token, so the change is backwards compatible, and WordPress has already adopted it.
- This Month in Ladybird - May 2026
Ladybird easyNoviceLadybird merged 464 pull requests in May 2026. It now passes Cloudflare Turnstile, and scrolling runs asynchronously on an out-of-process compositor with crash recovery. Other major changes: a Cranelift-based WebAssembly JIT (about 8x on CoreMark), an on-disk JavaScript bytecode cache with lazy decoding that saves hundreds of megabytes on large sites, and incremental GC sweeping. The HTML and URL parsers are now written in Rust, and the Rust HTML parser is about 10% faster than the C++ one. Media Source Extensions are enabled by default, content blocking now uses adblock-rust, and the browser gains CSS container queries, @scope, subgrid and refreshed Qt UI work.
- WebKit features for Safari 26.3
WebKit mediumAdeptSafari 26.3 adds Zstandard (Zstd) content encoding and an AbortSignal on the Navigation API's NavigateEvent, plus fullscreen video environment dimming in visionOS. Zstd decompresses fast and compresses quickly enough for on-the-fly use, unlike Brotli which is typically precompressed. Servers enable it by sending `Content-Encoding: zstd`, but support only ships on the 26.3 OS releases because it comes from the system networking stack. `event.signal` lets SPA code cancel fetches and clean up when a navigation is interrupted, and the release also fixes bugs in CSS anchor positioning, multi-column layout, HDR image rendering, media playback and Safe Browsing.
- This Month in Ladybird - August 2026
Ladybird hardMasterLadybird's August 2026 progress centres on a sustained engine performance push. A new incremental style engine treats DOM mutations as typed deltas routed to dependent selectors, and is checked against a cache-free reference evaluator and replayed session recordings. Layout results are now cached by formatting-context input constraints, and opacity and transform CSS animations run on the compositor. Together these lifted StyleBench from about 3.5 to 83 and Speedometer 2 from about 47 to 64. Other changes include CSS parsing and painting moving to Rust behind A/B equivalence checks, caging of NaN-boxed JS cell pointers into a reserved heap region, a single sandboxed WasmCompiler service, MSE support for fMP4/H.264/HEVC/AV1, CSS scroll snap, and JS debugging in DevTools.