Infinite scrolling with ajax does not work with Chrome
Ok, so after doing a lot of research on this very site, I wrote the code for infinite scrolling.
JS:
$(window).scroll(function() {
if ($(window).scrollTop() + $(window).height() == $(document).height()) {
alert('This is Bottom!');
}
});
Thing - This works great when working in Mozilla. But when I tried the same in Chrome or Opera it didn't work.
Could you guys help me and tell me where is the problem?
+3
source to share