I am trying to implement a infinte scroll, and I came across the equation
(window.innerHeight + window.scrollY) >= (document.body.offsetHeight - 500) ? can anyone say how actually this euation work ?? I tried logging
document.body.offsetHeight in my console. There is no much difference between them (i.e differenceis less than 100). Then the above equation will be even valid after inital page load right ?