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

Intersection Observer API #3

Open
lisa761 opened this issue Jun 28, 2020 · 0 comments · May be fixed by #4
Open

Intersection Observer API #3

lisa761 opened this issue Jun 28, 2020 · 0 comments · May be fixed by #4
Labels
enhancement New feature or request infinite scrolling

Comments

@lisa761
Copy link
Owner

lisa761 commented Jun 28, 2020

Scroll events are known to have performance issues. Intersection API is another alternative to keep track of when elements come into view. However scrollTop is still something that would be needed for calculating corresponding rows. It's best to try out this version of implementation as well.

This might help in cases where the scroll event misses the element even for speed that wouldn't come in the category of 'fast'. But overall intersection isn't so much better in catching the element each time than it is in terms of performance, which going by some of the tests done by others, is a huge improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request infinite scrolling
Projects
Infinite Scrolling
  
In progress
Development

Successfully merging a pull request may close this issue.

1 participant