showing results for - "detect if scrolled to bottom"
Jenna
01 Apr 2019
1window.onscroll = function(ev) {
2    if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) {
3        // you're at the bottom of the page
4    }
5};
6