Cos'è LCP (Largest Contentful Paint)?
Definizione Rapida
LCP misura il tempo necessario perché il più grande elemento di contenuto visibile su una pagina — come un'immagine hero o un titolo — venga renderizzato completamente.
Largest Contentful Paint (LCP) is one of Google's three Core Web Vitals. It measures the render time of the largest image, video, or block of text visible in the viewport when the page first loads. In practical terms, it measures when the main content of a page becomes visible to the user.
Google defines good LCP as under 2.5 seconds, needs improvement between 2.5-4 seconds, and poor above 4 seconds. These thresholds are measured at the 75th percentile of page loads across real users.
The "largest" element is typically the hero image on a landing page, the featured image on a blog post, a large heading, or a video thumbnail. The browser automatically identifies which element is the largest in the initial viewport. As the page loads, the LCP element might change (for example, from a heading to a hero image that loads later).
Common causes of poor LCP include slow server response time (high TTFB), render-blocking JavaScript and CSS, slow resource loading (unoptimized images, missing image dimensions), and client-side rendering that delays content visibility. Optimization strategies include using a CDN, preloading critical resources, optimizing images (using modern formats like WebP/AVIF and appropriate sizing), and eliminating render-blocking resources.
Perché è Importante
LCP is the most important loading metric because it measures when users see the content they came for. A fast LCP means users quickly confirm they're on the right page and start consuming content. A slow LCP means users stare at a blank or partially loaded page, and many will abandon before it finishes.
Since LCP is a Google ranking factor, improving it can directly boost your search visibility. It's also the metric most strongly correlated with user satisfaction and engagement.
Esempi Pratici
A travel website optimized their hero images by serving WebP format and appropriate sizes, reducing LCP from 5.2 seconds to 1.9 seconds on mobile
A blog preloaded their LCP element (a featured image) and saw LCP improve from 3.1s to 1.6s, resulting in a measurable decrease in bounce rate
An e-commerce site discovered that a large CSS file was render-blocking their LCP element; inlining critical CSS brought LCP from 4.0s to 2.1s
A news site implemented responsive images with the srcset attribute, serving smaller images to mobile devices and reducing mobile LCP by 40%
Termini Correlati
Core Web Vitals
Le Core Web Vitals sono tre metriche specifiche definite da Google che misurano la reale esperienza degli utenti sui siti: prestazioni di caricamento (LCP), interattività (INP) e stabilità visiva (CLS).
CLS (Cumulative Layout Shift)
CLS misura la quantità totale di spostamenti di layout imprevisti che si verificano durante l'intero ciclo di vita di una pagina, quantificando quanto si sposta il contenuto visibile.
TTFB (Time to First Byte)
Il TTFB misura il tempo tra la richiesta di una pagina da parte del browser e la ricezione del primo byte di dati dal server, fungendo da indicatore del tempo di risposta.
CDN (Content Delivery Network)
Un CDN è una rete di server distribuiti geograficamente che consegna i contenuti web agli utenti dal server più vicino a loro, riducendo i tempi di caricamento.
Hai bisogno di aiuto con lcp (largest contentful paint)?
Il nostro team può aiutarti a mettere in pratica questo concetto. Ottieni una consulenza gratuita per discutere del tuo progetto.