[ BLOG ]For Frontend Engineers · 5 min read

Video LCP: Find and Fix the Loading Delay

Published

When a performance report identifies a video as the Largest Contentful Paint element, check what delayed its first visible image. The problem may be a late poster request, a slow page response, or JavaScript hiding the player. Find that delay before spending time recompressing the video.

Confirm which element the browser measured

Largest Contentful Paint, or LCP, records when the largest eligible image, text block, or video in the viewport renders. For a video, the poster or first video frame can contribute, whichever appears earlier. The web.dev LCP reference describes the eligible elements. This guide covers a native HTML video on your page; embedded third-party players need separate investigation.

  1. Open the public page in Chrome DevTools and record a page reload in the Performance panel. Use a fixed viewport and note your network and CPU settings.
  2. Inspect the LCP event and its associated element. Record the element and resource URL; a page with a large video may still have a heading or another image as its LCP element.
  3. Repeat at the mobile layout you support. A changed layout can produce a different candidate.

Chrome’s Performance panel reference covers load recordings and analysis. Let the initial load finish without clicking Play or scrolling, since user interaction affects LCP reporting. Save the trace so later comparisons use the same starting point.

Use the timing breakdown to choose the next check

For a poster-based LCP, compare the page response, poster request, and paint in the trace. Chrome’s LCP breakdown separates the following phases:

PhaseWhat it coversCheck next
Time to first byteNavigation until the first byte of the page responseDocument redirects, response time, and caching
Resource load delayPage response until the poster starts loadingWhen the poster URL becomes available to the browser
Resource load durationThe poster transferImage dimensions, encoded size, and delivery
Element render delayPoster loaded until the element rendersBlocking styles, long tasks, and hidden content

If the image finishes loading well before it appears, investigate the rendering gap. A reveal animation, client-side component, or experiment script may hold the player out of view. Making the image smaller can leave that wait unchanged. The web.dev LCP optimization guide explains how a saving in one phase can be absorbed by another.

If the transfer itself dominates, resize the poster for its actual use and compare image encodes. Keep enough detail for the displayed size, including larger screens. The poster-image guide covers choosing the frame; the compression guide covers the separate video export decision.

Test an early poster request when discovery is late

Keep the visible player and its poster URL in the initial HTML when possible. If the measured LCP poster starts late, test preloading that image from the document head:

<!-- In the document head -->
<link rel="preload" as="image"
  href="/media/demo-preview.webp"
  type="image/webp" fetchpriority="high" />

Use the same URL on the player. This example is for a visible, click-to-play demonstration:

<video controls playsinline preload="none"
  poster="/media/demo-preview.webp"
  width="1280" height="720"
  style="display:block;width:100%;height:auto">
  <source src="/media/demo.mp4" type="video/mp4" />
  <track kind="captions" src="/media/demo.en.vtt"
    srclang="en" label="English" />
</video>

Replace the paths and dimensions with your files. Supply a reviewed caption track when needed; the WebVTT guide covers preparing it. The image preload and the video’s preload attribute control different requests: the first requests the poster early, while preload="none" asks the browser to defer video data. That attribute is a hint, so inspect the actual requests in your supported browsers.

The web.dev video performance guide recommends the image preload with high fetch priority for an LCP poster. It also warns about competing downloads. Apply it to a measured critical image; preloading every preview can delay resources the page needs more urgently. In Network, confirm the preload and player use the intended image without redundant transfers.

Check autoplay and playback separately

The example deliberately waits for a visitor to play. An autoplaying video starts fetching media to play, so preload="none" is not a way to postpone that transfer. MDN’s video reference explains that autoplay takes precedence. Review the network activity of the actual autoplay setup if your page needs one.

An early poster can give visitors a useful preview without making the video ready to play. After testing the initial load, press Play and check the startup wait, controls, captions, and sound. The landing-page demo guide covers those surrounding choices.

Compare the change under the same conditions

Repeat the reload with the same viewport, throttling, cache state, and page content. Compare the LCP element and timing phases across several runs rather than reporting the best single result. Check a warm-cache visit separately. Record which request or rendering delay changed.

If you have field data in PageSpeed Insights or your own monitoring, review it after deployment as well. A local trace describes that test’s conditions; it does not establish an improvement for every visitor. Keep the change only when the loading and playback checks support it.