Largest Contentful Paint (LCP) is Google's user experience metric. It will be a ranking factor in 2021. This guide explains what LCP is and how to achieve the highest score. Definition of maximum content full paint What is the most satisfying paint? LCP is a measure of how long it takes for the main content of a page to be downloaded and operational. What is measured is the largest image or context block in the user viewport. Anything that extends beyond the screen is not counted. Common elements that are measured are block-level text elements such as images, video poster images, background images, and paragraph tags. Why is LCP measured? LCP was chosen as the primary metric for the WebVitals score because it accurately measures the speed of web page usage.
In addition, it is easy to measure and optimize. Block-level elements used to calculate LCP scores The block-level elements used to calculate the maximum content full paint score are the <main> and <section> elements, as well as headings, divs, and ghost mannequin effect form elements. advertisement Continue reading below Basically, block-level HTML elements that contain text elements can be used as long as they are the largest. Not all elements are used. For example, the SVG and VIDEO elements are not currently used to calculate the maximum content full paint. LCP is an easy-to-understand metric because it only optimizes by looking at a web page to identify the largest text block or image and making it smaller or removing everything that quickly prevents downloads. Google includes most sites in the Mobile First Index, so we recommend optimizing for Mobile Viewport first and then for the desktop.
Delaying a big factor may not help Web pages may be partially rendered. Large featured images may take longer to download than the largest text block level elements. What happens in this case is that the PerformanceEntry of the largest text block level element is logged. However, when the featured image at the top of the screen loads, if that element occupies much of the user screen (viewport), another PerformanceEntry object is reported for that image. advertisement Continue reading below Images of LCP scores can be awkward Web publishers typically upload an image to its original size, then use HTML or CSS to resize the image and display it in