Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Largest Contentful Paint image was lazily loaded  #146

@rdallaire

Description

@rdallaire

I'm trying to get perfect lighthouse scores.

When having an image in the Largest Contentful Paint (LCP) you get this warning when running Google Lighthouse Tests

⚠️ Largest Contentful Paint image was lazily loaded

My example
https://rossdallaire.com/notes/tv-interfaces-can-be-hard-to-find-active-selection/

https://pagespeed.web.dev/report?url=https%3A%2F%2Frossdallaire.com%2Fnotes%2Ftv-interfaces-can-be-hard-to-find-active-selection%2F&form_factor=mobile

When I look at the Industrial Empathy post that has an LCP image it has loading="eager" on the first image.
https://www.industrialempathy.com/posts/viral-software-deadlines/

I'm wondering if I did something incorrectly or it looks like there needs to be an updated way to detect LCP image and load it differently.


I haven't tried anything but I'm assuming it has something to do in img-dim.js
https://github.com/google/eleventy-high-performance-blog/blob/main/_11ty/img-dim.js#L91

May explore further if no one else takes a look.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions