Skip to content
Advertisement

infinite scroll doesn’t stop when contents finish

hi am having a problem with infinite scroll functionality, when all the contents have been displayed it still continues to scroll (strange behavior). i am looking for a way to stop the infinite scroll when all contents are displayed

here is my code

JavaScript

i have bee working on this days now….please heeeeeeeeeeelllllllllpppppp 🙁

Advertisement

Answer

You can try unbinding it from window object. Suppose your last page reached then use this function

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