Use scrollMargin for lazy load intersection observer
Categories
(Core :: Layout, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox148 | --- | fixed |
People
(Reporter: tcaptan, Assigned: emilio)
References
(Blocks 1 open bug)
Details
(Keywords: webcompat:platform-bug, Whiteboard: [platform-feature][webcompat:risk-low])
User Story
user-impact-score:0
Attachments
(1 file)
Currently the lazy load intersection observer is set up using a rootMargin. This does not work well for pages that use images in CSS scrollers, like carousels, causing the images to load too late, when they become visible and the intersection with the root is detected. To work around this issue some developers are choosing to not use lazy loading, thus increasing the overall bandwidth usage for their sites.
This problem was discussed in issue 431.
Using scrollMargin for the lazy load intersection observer will allow lazy loading images to load when they are near the viewport as expected.
Updated•2 years ago
|
Comment 2•2 years ago
|
||
Blink's intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/CyG9T4ApdL4/m/L-KneyDHBgAJ
Updated•2 years ago
|
Updated•2 years ago
|
Updated•8 months ago
|
Updated•7 months ago
|
Updated•4 months ago
|
Updated•3 months ago
|
| Assignee | ||
Comment 3•14 days ago
|
||
Updated•14 days ago
|
Updated•14 days ago
|
https://hg.mozilla.org/mozilla-central/rev/326024f8f5a4
https://hg.mozilla.org/mozilla-central/rev/bd631654e320
Updated•4 days ago
|
Description
•