News for hackers. Stuff that matters.
Re:Infinite Scrolling: When to Use It, When to Avoid It by gampleman on Saturday September 10, 2022 @09:00AM (#32790218)
I think this depends on what kind of content you are scrolling.

If you know how many items there are and all the items have the same height, then you can simply set the height of your container for the scrollbar to be accurate.

Furthermore you can listen to the scroll event and load the correct items if the user uses the scrollbar to jump to a particular spot.

So I think the bigger problem is a) people being lazy and not implementing this properly b) using this pattern where the preconditions don’t hold.

There are no comments on this comment yet.