Open Bug 1864794 Opened 10 months ago Updated 10 months ago

Use scrollMargin for lazy load intersection observer

Categories

(Core :: Layout, enhancement)

enhancement

Tracking

()

People

(Reporter: tcaptan, Unassigned)

References

(Depends on 1 open bug)

Details

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
You need to log in before you can comment on or make changes to this bug.