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

IntersectionObserver API Support #85

Open
keithws opened this issue Jan 5, 2018 · 1 comment
Open

IntersectionObserver API Support #85

keithws opened this issue Jan 5, 2018 · 1 comment
Labels

Comments

@keithws
Copy link

keithws commented Jan 5, 2018

Do you have any plans to support the IntersectionObserver API? It is supposed to be more performant than Element.getBoundingClientRect() and is becoming widely supported.

@callmecavs
Copy link
Owner

callmecavs commented Jan 5, 2018

will likely update this lib at some point, if i find the time

if you want to use IntersectionObserver for the time being, check out obzerv. it tracks elements relative to the viewport in a more general sense. there's an example on the README that shows how to load an image lazily

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants