How to fix a slow Largest Contentful Paint (LCP), in the order that matters
Google's "good": LCP ≤ 2.5 s, INP ≤ 200 ms, CLS ≤ 0.1, at the 75th percentile of real visits. On most slow small sites the largest element is a photo, so fix in this order: right-sized images (WebP at the size shown), never lazy-load the hero (and give it fetchpriority="high"), width and height on every image, then defer scripts and use font-display: swap. Measure on a throttled phone after each step.
The details
| Metric | Good | Poor |
|---|---|---|
| LCP (largest paint) | ≤ 2.5 s | > 4 s |
| INP (responsiveness; replaced FID in March 2024) | ≤ 200 ms | > 500 ms |
| CLS (layout shift) | ≤ 0.1 | > 0.25 |
Source: web.dev/articles/vitals. Field data (Search Console, PageSpeed Insights) covers 28 days, so real-visitor numbers take weeks to move.
What usually goes wrong
- Camera-size photos (3–4 MB each) shown at 400 px.
- loading="lazy" on the hero image, which delays the largest element.
- Resizing the photos but stopping without measuring: the hero is often still too heavy.
- A banner or cookie bar that pushes the page down after load (layout shift).
Before and after, from Palm's tests
| Measured | Without Palm | With Palm |
|---|---|---|
| Largest paint (median) | 9.3 s | 1.7 s |
| Page weight | 2.4 MB | 1.1 MB |
| Passed Core Web Vitals | 0 of 3 | 3 of 3 |
A yoga studio site with camera-size photos, a lazy hero, a blocking script and a late banner; same agent, same request, three runs each side; measured on a mid-range phone over Slow 4G. Every photo, the banner and the reviews were kept on both sides.
Same agent (Claude Code), same request, a fresh folder each run; judged blind by a separate session that never knew which side used Palm. All results.
What your agent can't do alone
You can't see speed in code. Palm's site-speed loads the page in Chrome on a throttled mid-range phone (the same Slow 4G and 4× CPU Lighthouse uses), reads Chrome's own LCP, layout shift and blocking time, names the files behind them, and writes right-sized WebP copies of the images.
Questions
What is a good LCP?
2.5 seconds or less for 75% of visits.
Why is my PageSpeed score still bad after fixing?
The field data (real visitors) covers the last 28 days, so it moves slowly; compare lab numbers before and after.