Remove lazy-loading attribute of first image to improve the LCP score

Remove lazy-loading attribute of first image to improve the LCP score

Remove-lazy-loading-attribute-of-first-image-to-improve-the-LCP-score.webp


Only for XenVn addon version 1.9.x

Largest Contentful Paint (LCP)
is an important, user-centric metric for measuring perceived load speed because it marks the point in the page load timeline when the page's main content has likely loaded—a fast LCP helps reassure the user that the page is useful.
The Largest Contentful Paint (LCP) metric reports the render time of the largest image or text block visible within the viewport, relative to when the page first started loading.
https://web.dev/lcp/#how-to-improve-largest-contentful-paint-on-your-site
https://web.dev/optimize-lcp/#:~:text=Largest Contentful Paint (LCP) is,is rendered within the viewport.

Remove the lazy-loading attribute of the first image in the first post to improve the Largest Contentful Paint (LCP) score.
As you can see in this article, the first image will not have the loading="lazy" attribute, and the other images below will have it.

This is a feature part of XenVn add-on, see details here:
https://xenvn.com/threads/xenvn-all-in-one-tools-for-xenforo-2.516/

Google PageSpeed Insightsh.webp



Largest Contentful Paint.webp
 
Last edited:
Back
Top Bottom