KEMBAR78
Setting loading=eager should be less COMEFROM-ey · Issue #5547 · whatwg/html · GitHub
Skip to content

Setting loading=eager should be less COMEFROM-ey #5547

@domfarolino

Description

@domfarolino

Currently a loading=lazy image is deferred until the will lazy load image steps return false, and these steps return true as long as an image's loading attribute is in the Lazy state. This means right when an element's loading attribute is set to the Eager state, these steps will return false.

While that's not too COMEFROM-ey (since we're explicitly invoking the steps that apparently observe the state of the loading attribute), I think it would be clearer if we explicitly resumed the #updating-the-image-data algorithm when the loading attribute gets set to the Eager state.

This is filed as a follow-up to #5510 (comment), and I'll take care of it when that PR lands.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions