Quote:
Originally Posted by RustyBrooks
I don't know the answer but it reminds me of a very common problem with hardware buttons, which is that at the time you press and release them, they will actually bounce between off and on rapidly. So whatever is responding to the button should not respond instantly, but instead should wait a tick. This is called "debouncing" and basically you wait until you detect that the button has been pressed for a complete interval. Usually pretty short, 5 or 10 milliseconds is fine.
So maybe instead of triggering loading the next one the instant you hit the bottom, wait until you've "been" at the bottom for a fixed short period and then load?
No idea if it'll help or not. Just a thought.
When I've run into problems similar to what micro is describing in the past they were examples of this kind of debouncing problem. That is, I had some logic that was adding or removing something from the DOM based on scroll position, but if the threshold was near the bottom of the scrollable page it could bounce between states rapidly. Debouncing the events should help.