# 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.

## What you need

- The public page URL, affected device type, and one performance trace or a PageSpeed report
- The element identified as LCP and the asset URL if it is an image
- A representative before-and-after test condition and a way to review template changes

## 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 evidence | Cause to test | Proposed change |
| --- | --- | --- |
| Hero request starts late | The image is loaded by client-side script | Expose its responsive source in the initial HTML |
| Image file loads quickly once requested | Download time is a smaller share of the delay | Keep this test focused on earlier discovery |
| Repeat mobile trace | The chosen mobile asset starts earlier and paint follows | Check 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.

## Tools for this job

- [PageSpeed Insights](https://seotoolsforagents.com/tools/pagespeed-insights.md) — Compare real-user performance data, when available, with a Lighthouse lab run for the same page.

## Sources

- [Optimize Largest Contentful Paint](https://web.dev/articles/optimize-lcp)
- [PageSpeed Insights field and lab data](https://developers.google.com/speed/docs/insights/v5/about)

## Where to go next

- [Read field data and Lighthouse results together](https://seotoolsforagents.com/workflows/read-pagespeed-field-and-lab-data.md)
- [Triage layout shifts and slow interactions](https://seotoolsforagents.com/workflows/triage-core-web-vitals.md)
