Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add implementation using IntersectionObserver for detecting visible images #56

Open
jan-san opened this issue Jul 10, 2019 · 0 comments
Labels
enhancement topic:frontend Issues related to the frontend code topic:performance

Comments

@jan-san
Copy link
Collaborator

jan-san commented Jul 10, 2019

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:

@jan-san jan-san added enhancement topic:frontend Issues related to the frontend code topic:performance labels Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement topic:frontend Issues related to the frontend code topic:performance
Projects
None yet
Development

No branches or pull requests

1 participant