Skip to content
Advertisement

Scroll event JQuery – Detecting bottom page

Im trying to make an infinite scroll page. The script works well on my computer (Chrome) but not on my friend’s computer (chrome too). I saw it does work when it comes to detect the bottom of the page when the content at the bottom was append via ajax.

I also saw that the loading content works once i change the width of the page ( Just by moving the chrome’s console window).

I guess this is because the js does not take into count the DOM.

Any idea ?

JavaScript

Advertisement

Answer

The problem was caused by the equality condition:

JavaScript

This can simply be fixed with

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement