VionetoVioneto
Back to the magazine

VIONETO MAGAZINE

Delay video loading when it helps the page load

A local Chrome test compares an immediate video embed with one added after a click. Check when the poster, player and video file are requested.

Updated:

Two loading paths: directly from thumbnail to player and video file; in the case of a click, first from thumbnail through a loading step to the same resources.
The user's local comparison checks the timing of requests. It does not provide a general speed value.Image: Vioneto · original illustration

A long help section contains a video further down. Many visitors read only the first paragraph; others want to watch the video immediately. For both scenarios, it's important to know when the thumbnail, player, and actual video data are loaded. These three components do not need to load simultaneously.

Start with the video's role on the page. Is it the central explanation in the first visible section, or does it address a specific question that appears later? This decision determines which content must be available early and which can be loaded only when clearly needed.

Thumbnail, player, and file are different

The thumbnail previews the content. An embedded hosting player can additionally load its own page, scripts, and other resources. Video data follows the rules of this player and the selected playback settings. A visible play button does not indicate which requests have already been made.

In a self-hosted HTML video, the "preload" attribute specifies the desired level of preloading: "none", "metadata", or "auto". MDN explicitly states that this is a hint to the browser. The actual handling and any desired automatic playback will influence the result. Therefore, use the preload setting in combination with testing in the target browser.

When embedding a foreign iframe, you are affecting a different part of the process. The iframe loads its own content. A directive on the outer web page does not automatically alter the preloading settings within the hosting player. Follow its documented embedding procedure.

Two separate pages with identical content

For this article, we compared two local HTML pages in Desktop Chrome on October 23, 2026. Both pages displayed the same thumbnail. The player content was identical: a local iframe with a native video element, using the same synthetic six-second MP4 file and "preload=metadata". No external video service was invoked.

The first page immediately loaded the iframe. The second page initially showed a "Load Video" button; only after clicking it was the player embedded. This deliberately changed the timing of iframe creation. It was a deliberate click-based loading scenario, not a test of the browser's internal distance threshold for a lazy-loading attribute.

The server request log for the first page showed requests for the thumbnail, iframe document and MP4 as it loaded. The second page initially requested only the thumbnail. It requested the iframe and MP4 after the click, and contained exactly one iframe.

The video file was identical in both cases. This example shows that the first request in this implementation has been delayed until it reaches the loading action. It neither measures saved seconds nor provides an actual website loading time. Testing over the local loopback network, using a small test file and a single browser makes these more detailed conclusions impossible.

When a delayed start makes sense

If the video supports a section further down the page, show the thumbnail with a clearly labelled button to load the player. A click that loads the player can be a separate action from playback. Keep the subsequent controls easy to reach and use.

On a page where the video is the main content, the same delay can be disruptive. web.dev explains that videos and their thumbnails can be the most visible content on a page. Such early-critical content should not be universally deferred using lazy loading. First, determine which element on your page actually serves this key role.

A reserved area with the appropriate aspect ratio also helps prevent newly loaded content from unexpectedly shifting the text. Loading behavior and layout are distinct responsibilities: a player that loads later can still be geometrically properly positioned, while immediate embedding might result in an inappropriate placement.

Recording format and available space in the player differ.

Consider browser support and existing code

The current web.dev guide now also covers the "loading=lazy" attribute on video elements, where browser support allows it. If unsupported, this attribute can be ignored; preloading and thumbnail behavior then follow the standard rules. For iframes, MDN describes a separate lazy-loading mechanism. Both approaches differ clearly from explicit click-based solutions.

Do not simply copy a provider's code based on an arbitrary example. First, check which feature offered by the provider best meets your requirements. A custom placeholder solution must include clear labeling, keyboard-based operation, and a sensible handling of loading errors. Our deliberately limited comparison does not provide a ready-made production component.

Evaluate a change on the completed page

  1. Note which resources load before an action and what visitors can immediately see.
  2. Change one loading choice at a time. Keep the video and the purpose of the page the same.
  3. On the target devices, retest startup, layout, keyboard access and loading errors.
  4. Measure the published page under recorded conditions if you need timing figures. Keep the measured results separate from expectations about rankings or load speed.

Delayed loading alone does not prove that a website as a whole does not contact any third-party services before an action. External thumbnails or other page elements may already establish connections. The claim must refer to the actually tested resources.

Sources and verification scope

We read the source documentation on 23 October 2026 and tested locally generated media in Chrome with its ordinary playback rules. We observed when each resource was requested. A site with different media, hosting or devices needs its own measurements.

web.dev: Lazy loading video

MDN: HTML Video

MDN: HTML iframe

Sources and further reading

  1. https://web.dev/articles/lazy-loading-video
  2. https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/video
  3. https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/iframe