Skip to content

Image with src "/images/logo.png" was detected as the Largest Contentful Paint (LCP) #48255

Closed Answered by icyJoseph
ThakurSaad asked this question in Help
Discussion options

You must be logged in to vote

What this is telling you is that you have a large image that is not being loaded optimally.

Specifically, LCP measures the time from when the user initiates loading the page until the largest image or text block is rendered within the viewport. - https://web.dev/optimize-lcp/

With images, and other resources, we can use a technique called pre-loading. As soon as the browser hits the preload link, it'll get that resource and continue processing the HTML for the page, https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload

In Next.js, the next/image component has a priority prop, which you can activate to trigger the preload of the resource, https://nextjs.org/docs/api-re…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ThakurSaad
Comment options

Answer selected by ThakurSaad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants