Speed and performance

LCP — Largest Contentful Paint

Largest Contentful Paint estimates when the largest eligible image, text block or other supported content element in the viewport becomes visible. It reflects an important part of perceived loading speed.

Published: Updated: 3 min read
Diagram: LCP - Largest Contentful Paint. Server - Resource - Rendering.

What does LCP measure?

Largest Contentful Paint estimates when the largest eligible image, text block or other supported content element in the viewport becomes visible. It reflects an important part of perceived loading speed. It is not simply the time until the entire page finishes downloading, nor is it necessarily the time a logo or spinner first appears.

Where does the delay come from?

They are influenced by the server response, when the resource is discovered, transfer and waiting for rendering. A large image may be a visible symptom, although late HTML or blocking styles are the culprit. First, determine the actual LCP element in the diagnostic tool. Without this, optimizing random files may not change the slowest step.

Example of a main photo

If the image is only added after the JavaScript carousel is launched, reducing its size only solves part of the problem. It is worth exposing an important resource in the initial HTML and matching it to the screen. An image immediately above the scroll line should usually not wait for lazy loading. Use download priorities deliberately, not for all photos at once.

Optimization procedure

Measure actual visits and representative lab run. Split server, discovery, transfer and display time. Check the cache, critical CSS, fonts and image variant selection. Maintain proportions and a stable place in the layout. On a phone, the LCP element may be different than on a desktop, and the processor and network limitations may be significantly greater.

Apparent solutions

Preloading multiple files causes bandwidth competition and may delay important content. Changing the format without assessing quality does not guarantee improvement. Moving information down just to change the item being measured bypasses the user's problem. A fast local desktop also does not confirm that the website works well on an average phone.

How to verify the effect?

Confirm earlier start or faster transfer of the correct resource and faster display of the main item under comparable conditions. When field data is available, track the 75th percentile. A good target is 2.5 seconds or less. In parallel, check that the photo remains readable and that the correction has not caused any shifts or functional errors.

Why isn't just shrinking the image enough?

The largest image may be small and yet appear late when its address is only discovered after executing a script or downloading an additional sheet. Check your network schedule and rendering time. If the resource downloads quickly, styles, font, or main thread locking may take longer. Change the stage that actually dominates rather than compressing the file multiple times without affecting the result.

Don't lazy load on a key image without positioning it. Use priority and preload consciously so that they do not compete for bandwidth with other needed resources. Test several representative screens: The LCP element may change between phone and computer. Once optimized, confirm that the correct image is still visible and the mobile variant is not downloading an unnecessarily huge desktop file.

Sources and further reading

Use the primary documentation to check the principles and limitations described in this article.

How we prepare the glossary

These articles combine original editorial work, AI support for editing and translation, and checks against linked primary documentation. Examples are illustrative unless stated otherwise; they do not represent client results. Dates refer to publication and actual content changes.

From knowledge to action

Need help putting this into practice?

Tell us about your website or process. We will define the scope and the next practical step.

Discuss your project