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

inview update to use IntersectionObserver instead of manual calculations #578

Closed
oliverfoster opened this issue Sep 4, 2024 · 0 comments · Fixed by #579
Closed

inview update to use IntersectionObserver instead of manual calculations #578

oliverfoster opened this issue Sep 4, 2024 · 0 comments · Fixed by #579
Assignees
Labels
enhancement New feature or request

Comments

@oliverfoster
Copy link
Member

Subject of the issue

IntersectionObserver is now long fully supported https://caniuse.com/intersectionobserver

It works in a similar way to MutationObserver, in that it allows well timed callbacks against the browser's rendering lifecycle, giving us the ability to immediately capture onscreen events as they happen and respond to them in a way that doesn't cause rendering glitches. It is much more performant and much less resource intensive than our current approach of measuring and comparing on expiring intervals and at strategic events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Recently Released
Development

Successfully merging a pull request may close this issue.

1 participant