---
title: "How To Use Standard HTML Video & Audio Lazy-Loading on the Web Today"
description: "HTML <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."
url: "https://swe.quest/articles/how-to-use-standard-html-video-audio-lazy-loading-on-the-web-today-e65b737aa3473734"
canonical: "https://engineering.squarespace.com/blog/2026/how-to-use-standard-html-video-and-audio-lazy-loading-on-the-web-today"
source: "Squarespace Engineering"
published: "2026-04-07"
difficulty: "medium"
kind: "How-to"
reading_minutes: 8
tags: ["web-performance","browsers","frontend"]
---

# How To Use Standard HTML Video & Audio Lazy-Loading on the Web Today

A post on [Squarespace Engineering](https://swe.quest/sources/squarespace.md), published 2026-04-07, 8 min read, How-to. Original: [https://engineering.squarespace.com/blog/2026/how-to-use-standard-html-video-and-audio-lazy-loading-on-the-web-today](https://engineering.squarespace.com/blog/2026/how-to-use-standard-html-video-and-audio-lazy-loading-on-the-web-today)

## Summary

HTML \<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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Web performance](https://swe.quest/tags/web-performance.md) (Web & mobile)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- HTML media elements ([easy posts on Video & media](https://swe.quest/tags/video-media.md?difficulty=easy))
- basic web performance metrics ([easy posts on Web performance](https://swe.quest/tags/web-performance.md?difficulty=easy))

## Keywords

HTML video, HTML audio, loading="lazy", HTMLMediaElement, Largest Contentful Paint, Chrome 148

## Related posts

- [How we improved image download sizes on Medium with just four characters](https://swe.quest/articles/how-we-improved-image-download-sizes-on-medium-with-just-four-characters-a3d2c25702a3ec03.md): Medium Engineering · 2026-05-18 · Medium · 7 min read · Web performance, Browsers, Frontend
  Adding "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.
- [What the iPhone Duo means for web development](https://swe.quest/articles/what-the-iphone-duo-means-for-web-development-ae876b58f98678e3.md): Mux · 2026-10-23 · Medium · 8 min read · Frontend, CSS, Browsers, Video & media, Mobile
  Safari on the foldable iPhone Duo exposes the Device Posture API and Viewport Segments API behind WebKit feature flags.
- [WebKit Features in Safari 17.1](https://swe.quest/articles/webkit-features-in-safari-17-1-a08f621f175b022b.md): WebKit · 2023-10-25 · Easy · 5 min read · Browsers, Video & media, Frontend
  Safari 17.1 brings the Managed Media Source API to iPhone, a power-efficient alternative to Media Source Extensions for adaptive bitrate streaming.
- [How to use Media Source Extensions with AirPlay](https://swe.quest/articles/how-to-use-media-source-extensions-with-airplay-06e280154b4295b0.md): WebKit · 2024-02-16 · Medium · 4 min read · Video & media, Browsers, JavaScript, Frontend
  Media Source Extensions and Apple's Managed Media Source can't be used with AirPlay because they feed binary blobs into a SourceBuffer, and AirPlay needs a real playback URL.
- [Looking fine with Firefox 89](https://swe.quest/articles/looking-fine-with-firefox-89-bc7d05601914559d.md): Mozilla Hacks · 2021-06-01 · Medium · 3 min read · Browsers, CSS, JavaScript, Web performance, Accessibility
  Firefox 89 ships a slimmer, more minimalist interface alongside several new web platform features.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
