Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rjbwork
on Aug 16, 2017
|
parent
|
context
|
favorite
| on:
Passive event listeners
Why do you need to detect whether something is in the viewport?
SimeVidas
on Aug 16, 2017
|
next
[–]
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.
esailija
on Aug 17, 2017
|
parent
|
next
[–]
You can easily scroll so that the intersection observer sentinels are not seen and cause bugs. Disappointing.
eyelidlessness
on Aug 16, 2017
|
prev
[–]
The linked description provides several use cases.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: