Skip to content

Getting updated img tags to respect loading="lazy" #264

@anton-christensen

Description

@anton-christensen

When updating an img tag outside the viewport with a new src attribute, if the image had already been loaded, it requests the new src image immediately instead of waiting till the element is visible in the viewport.

I expect this is because of some internal state of the node not being reset, and i realize it may not necessarily be relevant to morphdom...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions