Modern Software
Using IntersectionObserver for your infinite scroll needs
IntersectionObserver can make your single page app flow better than ever
If you've ever tried adding infinite scrolling to a website, you know it can be a challenge. One of the most popular ways of doing it is to listen to scroll events and then act on that information, like so:
window.addEventListener('scroll', () => {
//do something here
})
Most often, that do something . . .
March 28, 2018