RankifyPro

Performance

Fix a Slow LCP Hero Image on Mobile

Break image loading into discovery, transfer and paint stages to fix the part that is actually slow.

Identify the LCP element before optimizing it

Use a browser performance trace or a lab report to find the element contributing to LCP. It may be a hero image, heading or another large section. If it is an image, determine when the request starts, how long it transfers, and what happens between download completion and painting. The correct fix depends on where the time goes.

Check whether the first HTML response contains the image URL. If JavaScript inserts it after several modules load, the browser may discover it late. In that case, rendering the image in the original HTML can help more than compressing it again. Avoid lazy-loading a confirmed above-the-fold LCP image.

Take one bottleneck at a time

Suppose a mobile page downloads a 1,600-pixel hero into a 360-pixel column. A responsive image with sensible source sizes can reduce transfer. Compare the selected resource in the Network panel and test a high-density device. If the browser still selects a large file, check that the sizes attribute matches the rendered layout. Keep image dimensions or an aspect ratio so that the layout remains stable.

If the request starts early and completes quickly but the element appears late, inspect CSS that initially hides the section or long JavaScript tasks after load. Reserve high fetch priority for the actual critical image. Marking many images high priority can add competition for network bandwidth.

Verify the change without bias

Run the same mobile test before and after. Record the selected image URL, byte size and LCP element. A change that shifts LCP from the hero to a heading can still be useful. Check readability and cropping at common screen widths. Later, compare field results for the same page group.

Avoid optimizing an image that stopped being critical

After an image is optimized, repeat the trace to confirm what now determines LCP. A large heading blocked by a font or stylesheet can take over as the largest visible element. If the resource waterfall is already healthy, inspect the paint timing and rendering work before shrinking the hero further. Choose an image size that keeps the subject legible on both sparse and high-density displays.

Frequently asked questions

Should I preload every hero image?

Preload only when diagnosis shows a critical image is discovered late and the chosen resource can be predicted. Test it against ordinary early discovery.

Should every image have loading=lazy?

Use lazy loading for appropriate offscreen images. Leave critical above-the-fold images available early.

Will changing to WebP always solve LCP?

A smaller file can help transfer time. Server delay, discovery delay and render delay may still dominate.

Sources