Closed Bug 1864794 Opened 2 years ago Closed 13 days ago

Use scrollMargin for lazy load intersection observer

Categories

(Core :: Layout, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
148 Branch
Size Estimate S
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.

The spec PR has now been merged.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Blocks: 1962905
Size Estimate: --- → S
See Also: → 1975951
Whiteboard: [platform-feature][webcompat:risk-low]
User Story: (updated)
Blocks: 2008376
Assignee: nobody → emilio
Status: NEW → ASSIGNED
User Story: (updated)
Status: ASSIGNED → RESOLVED
Closed: 13 days ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
Regressions: 2009665
QA Whiteboard: [qa-triage-done-c149/b148]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: