Reply
Highlighted
New Member
Posts: 1
Registered: ‎01-24-2020

Infinite Scrolling help

Could one of you kind souls pls refer me to a tutorial that shows you you how to implement infinite scrolling for a page? I've managed to get my code working on my desktop but doesn't work on my mobile device. Are there any jquery frameworks that are mobile friendly that could do this?

 
Highlighted
New Member
Posts: 1
Registered: ‎02-13-2020

Re: Infinite Scrolling help


@BrooksElliot wrote:

Could one of you kind souls pls refer me to a tutorial that shows you you how to implement infinite scrolling for a page? I've managed to get my code working on my desktop but doesn't work on my mobile device. Are there any jquery frameworks that are mobile friendly that could do this?

 

Create a variable for the height of the entire document as well as a variable to determine your scroll position. Inside the scroll event, create 2 variables. We’re going to call them scrollHeight and scrollPos.