Problem: My loadMore() method gets executed on every container\'s scroll.
Meaning: loa
Let me add my two cents, had exact same problem, different solution! I have been debugging ng-infinite-scroll all day. At one point, I realized that javascript reports $(window).height() == $(document).height()
which makes no sense whatsoever.
I did a bit googling, and it happens when you're missing DOCTYPE: jquery $(window).height() is returning the document height
But, that was not enough! My DOCTYPE was eaten by browser, at one point. You can read further: Too big number of $(window).height() on wordpress