Skip to content

Use IntersectionObserver #16

Closed
Closed
@Aljullu

Description

@Aljullu

IntersectionObserver is a performant way to detect if an element is inside the viewport or not.

react-lazy-load-image-component should use that instead of some complex computations with the element position and the scroll position of the window to detect if the element is visible or not.

This must be implemented in a form that it fallbacks to the element position computations for browsers that don't support IntersectionObserver.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions