Video weight
Video is usually the heaviest thing on a web page; how it is compressed and when it loads decides much of a page's weight.
A few seconds of background video can outweigh everything else on the page. Autoplay makes every visitor download it, whether they watch or not. Setting `preload` to none or metadata, adding a poster image and loading video only when it comes into view all cut that cost.Source 1
Compression matters as much: the right codec and bitrate can make a file several times smaller with no visible loss. Short, muted loops should be as short as the idea needs.Source 2
How Regular approaches it
Regular adds video where it shows something a photo can't, and then sizes it carefully: compressed files, a poster first, and nothing that plays before it is on screen.
BenjaminWeb designer for sustainable and circular businessesSources and further reading
- Lazy-loading video, web.devweb.dev
- The video element, MDN Web Docsdeveloper.mozilla.org