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

Implement Intersection Observer #5

Open
meesrutten opened this issue Jan 9, 2019 · 1 comment
Open

Implement Intersection Observer #5

meesrutten opened this issue Jan 9, 2019 · 1 comment

Comments

@meesrutten
Copy link

Because we are currently using the scroll event to track the vertical position of components. I figured the Intersection Observer may seem more fitting for this purpose.
The Intersection Observer is perfect for these purposes:

  • Image lazy loading
  • Infinite scroll
  • Launching actions based on viewport visibility

Since it handles component positioning asynchronously it may boost performance quite a bit :)

@riccoarntz
Copy link
Owner

definitely worth looking into, need to test how accurate it is and wether it covers all of our current functionalities such as providing a threshold per component.

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

No branches or pull requests

2 participants