I'm looking for js solution that detects when user has scrolled to the bottom of the div with overflow: auto
.
There are plenty of solutions here on SO that describe how to achieve it with onscroll
event, but I was wondering if this can be done this with newer technology like IntersectionObserver
that doesn’t require attaching the scroll event.