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

Measured sizes for one 8-second 1080p loop at 30 fps
FormatUse it forMeasured size
AV1 (WebM, 10-bit)Chrome, Edge, Firefox, recent Safari on devices with an AV1 decoder2.6 MB
H.264 (MP4)The fallback that plays everywhere3.3 MB
VP9 alpha (WebM)Transparent, Chrome, Edge, Firefox4.4 MB
HEVC alpha (MOV)Transparent, Safari and iOS6.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

Pause off-screen and in background tabs
<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.

Your first free loop arrives by email right away. No spam.

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.

Sources

More guides