Will a video background slow down my website?
Updated
Not if it's sized and set up right. A well-encoded 8-second 1080p loop is about 2.5 to 3.5 MB, the page shows a light poster image first, and the video pauses when it's off screen. Slow heroes come from 20 to 30 MB uploads, missing posters and layout shift.
Budgets that work
| Format | Use it for | Measured size |
|---|---|---|
| AV1 (WebM, 10-bit) | Chrome, Edge, Firefox, recent Safari on devices with an AV1 decoder | 2.6 MB |
| H.264 (MP4) | The fallback that plays everywhere | 3.3 MB |
| VP9 alpha (WebM) | Transparent, Chrome, Edge, Firefox | 4.4 MB |
| HEVC alpha (MOV) | Transparent, Safari and iOS | 6.0 MB |
As a rule of thumb, aim for 3 to 4 MB on desktop and about half that for a phone version. Framer's own guidance is to keep looping videos under 5 MB, since browsers cache only about 5 to 8 MB of a looping video.
The checklist
- Poster image. For a video, Largest Contentful Paint uses whichever comes first, the poster loading or the first frame showing. A small WebP or AVIF poster makes that early.
- Reserve the space. Give the hero a fixed height or the video an aspect ratio, so the page doesn't jump when it loads (Cumulative Layout Shift).
- Muted and inline. iPhones only autoplay muted video, and play it inline only with
playsinline. Without both you get a frozen poster. - AV1 first, H.264 fallback. Safari plays AV1 only on devices with a hardware decoder (iPhone 15 Pro, M3 Macs and later), so always include the MP4.
- Pause when it's not seen. iOS already pauses off-screen video; do it everywhere with the snippet below to save battery and CPU.
- Respect reduced motion. Hide the video (or don't start it) under
prefers-reduced-motion: reduceand show the poster instead. - Avoid banding. Soft gradients band in 8-bit video. Encode AV1 at 10-bit with film grain, or dither when converting to 8-bit H.264.
<script>
const v = document.querySelector(".hero__video");
// pause when the hero scrolls away, resume when it's back
new IntersectionObserver(([e]) => (e.isIntersecting ? v.play() : v.pause()))
.observe(v);
// and when the tab is hidden
document.addEventListener("visibilitychange", () =>
document.hidden ? v.pause() : v.play());
</script>Phones
Cropping a landscape video to a tall phone screen usually cuts off the subject and wastes bytes. A separate portrait version, composed for 9:16 with room for the headline, looks better and can be half the size.
What a video doesn't cost
A video background needs no animation library and no real-time 3D rendering on the visitor's device: the browser decodes it, usually in hardware. That makes its cost predictable on low-end phones, unlike real-time WebGL scenes.
Skip the setup
Every Edgeloop loop ships pre-encoded (AV1, H.264 and both transparent formats) with a player that picks the right file, shows a poster, pauses off-screen and respects reduced motion.
<script src="https://edgeloop.studio/hero-loop.js" defer></script>
<hero-loop src="/loops/your-loop/" focus="right center"></hero-loop>Collection 01 opens soon. Join the waitlist for 3 free loops.
Questions
How big should a website background video be?
About 3 to 4 MB for an 8 to 10 second 1080p desktop loop, and about half that for a phone version.
Does a background video hurt SEO?
Only through page speed. Google uses Core Web Vitals in ranking, so give the video a light poster and reserved space to keep Largest Contentful Paint and layout shift healthy.
Should I use AV1 or H.264?
Both: AV1 first because it's smaller, with H.264 as the fallback for browsers and devices without AV1 decoding.