alt.hn

3/6/2026 at 7:17:47 PM

Htmx Infinite Scroll

https://alchemists.io/articles/htmx_infinite_scroll

by speckx

3/7/2026 at 1:54:20 AM

Honestly I hate so much infinite scroll. It is a nightmare to see it spread like that.

Before you would easily go to see pages at random far positions. With infinite scroll there is this frustration of not reaching a bottom and after a few times scrolling and waiting for data to load, you give up, and never go past the fifty or hundred last entries at most.

by greatgib

3/7/2026 at 8:40:28 AM

Even worse is the back button. Scroll any store and click on an item on page 10 of infinity and then use the back button. Back to page 1 you go. That’s why I open everything in a new tab pretty much by default.

by drw85

3/7/2026 at 1:58:27 PM

Or you click things on some form, it changes query params in the url (that's fine), but then it turns out each change created a new history item, and to actually navigate back to the previous page you need to click Back 300 times >:(

by orphea

3/7/2026 at 11:22:18 AM

Whenever I implement infinity scroll I always do it with query params for the page so that it is always possible to jump directly to page X.

by victorbjorklund

3/7/2026 at 2:55:11 PM

Thank you

by efilife

3/7/2026 at 7:06:52 PM

I mostly do not like infinity scroll because your position on the page is often metadata (from the point of view of the user).

It has its place.

e.g., the blog allows you to manually indicate a point on the index, but otherwise you "are" always at the top.

by malklera

3/7/2026 at 10:15:58 PM

That's enshittyfication. How come infinite scroll is better then a pager? Omg it's Idiocracy!

by gitowiec