Skip to content

Native loading="lazy" lacks dimensions inside gatsby-image. #17506

@eriktiekstra

Description

@eriktiekstra

Description

I am using the fluid queries within gatsby-image. When using the default loading="lazy", I get the following warning inside the console:

Screenshot 2019-09-09 at 15 44 21

[Intervention] An <img> element was lazyloaded with loading=lazy, but had no dimensions specified. Specifying dimensions improves performance. See https://crbug.com/954323

I tried to search for this issue, but only found 2 unanswered questions on spectrum. I am using gatsby 2.15.11 and gatsby-image 2.2.17. As far as I can see the native lazy-loading has been introduced in gatsby-image 2.1.0.

It also appears on https://using-gatsby-image.gatsbyjs.org/

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: mediaRelated to gatsby-plugin-image, or general image/media processing topicstype: upstreamIssues outside of Gatsby's control, caused by dependencies

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions