Skip to content

Add implementation using IntersectionObserver for detecting visible images #56

Description

@jan-san

All modern browsers now support the IntersectionObserver interface (currently supported for ~88% of web traffic), which allows to track the visibility of page elements more efficiently than by observing scroll events.

We should make use of this new feature, but keep the old implementation as a fallback for incompatible older browsers (or use this polyfill).

References:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions