Open yorkshire-pudding opened 6 months ago
Wasn't getting any interest with previous title, so thought being a bit more opinionated would get someone to disagree and suggest something else, or enable people to agree on this.
@yorkshire-pudding Do you know how D10 handles this?
@laryn - I haven't used D10 so no idea.
@laryn - I have access to one, so here is a screenshot:
It doesn't give the option of letting the browser decide, just lazy
or eager
While I was adding the lazy loading settings to the srcset Image module, I was copying what Core had done until @laryn pointed out that actually
auto
is no longer relevant for any browser.Source: https://web.dev/articles/browser-level-image-lazy-loading
Backdrop currently looks like this:
In srcset Image, as this is a new feature, I've implemented like this, but I'm happy to adapt to whatever is decided for core to have consistency in language.
The three relevant parts of the backdrop code are:
https://github.com/backdrop/backdrop/blob/266a5018c5e675ee88e51dd6e732da3ec464a696/core/modules/image/image.field.inc#L767-L774
https://github.com/backdrop/backdrop/blob/266a5018c5e675ee88e51dd6e732da3ec464a696/core/modules/image/image.field.inc#L740-L742
https://github.com/backdrop/backdrop/blob/266a5018c5e675ee88e51dd6e732da3ec464a696/core/modules/image/image.field.inc#L688-L700