Y
Hacker News
new
|
ask
|
show
|
jobs
by
rjbwork
3231 days ago
Why do you need to detect whether something is in the viewport?
2 comments
SimeVidas
3231 days ago
For lazyloading stuff like images and ads. Or that technique where you have an infinite list, and the elements that are scrolled off-screen are recycled on the other end.
link
esailija
3230 days ago
You can easily scroll so that the intersection observer sentinels are not seen and cause bugs. Disappointing.
link
eyelidlessness
3231 days ago
The linked description provides several use cases.
link