Skip to content

Fix a slow hero image and Largest Contentful Paint

Find the actual LCP element in a mobile trace, then fix the part of its load that’s taking longest.

Steps

  1. Find the element that actually sets LCP

    In a mobile performance trace, check the LCP entry and the element behind it. It may be the hero image or a text block. For an image, capture the resource chosen at that viewport, how it is loaded, and when the request starts. Repeat the test to check that the same element is the problem.

  2. See which part of the load takes longest

    For an image, separate the time to first byte, its discovery or start delay, its download duration, and the time from download to paint. A slow initial response points to delivery. A late image request points to how the browser discovers it. A loaded image that appears late points to rendering.

  3. Match one change to the evidence

    If the hero image is the LCP element and starts late, make its responsive source discoverable in the initial HTML and remove lazy loading from that image. Consider high fetch priority for that one important image. If the download is long, serve a suitably sized compressed image. If the image has loaded and painting waits, investigate the blocking script or style.

  4. Verify the right asset and the booking path

    Repeat the same mobile tests after the approved change and inspect which asset the browser requests. Compare the request start and paint, then check that the image still looks right, the layout stays steady, and the booking button works. Follow the field LCP trend separately when enough data is available.

A homepage hero that starts downloading late

A mobile trace shows the home services hero is the LCP element and its request starts after a script runs.

Trace evidenceCause to testProposed change
Hero request starts lateThe image is loaded by client-side scriptExpose its responsive source in the initial HTML
Image file loads quickly once requestedDownload time is a smaller share of the delayKeep this test focused on earlier discovery
Repeat mobile traceThe chosen mobile asset starts earlier and paint followsCheck layout, image sharpness, and the booking action

Prompt for your agent

Investigate LCP for [URL and viewport] using the trace I provide. Identify the actual LCP element and chosen asset if any. Break the delay into initial response, discovery, download, and paint for an image. Recommend one fix for the largest observed delay and a controlled mobile retest. Check effect on layout and booking. Report field LCP separately and wait for approval before editing the template.

Sources