logoalt Hacker News

Pxtltoday at 3:27 PM4 repliesview on HN

> Forum websites mostly deliver non-interactive content

I'd say that "Endless Scroll" is a good example of something that is... well maybe not interactive but still breaks the "just an HTML document" page metaphor that plays nice with such things.

Now, personally I find the UI compromises it takes to make endless scrolling happen are abhorrent (like not being able to ctrl-F or export the page content). But other people obviously like them.

Is that the kind of thing you'd be giving up as you move to a platform like HTMX?


Replies

geysersamtoday at 3:48 PM

Infinite scroll with htmx: https://htmx.org/examples/infinite-scroll/

show 1 reply
jimberlagetoday at 4:02 PM

I first learned about endless scroll in a Ruby on Rails meetup, where the presenter was showing how to craft snippets of HTML with ERB and using a bit of JS to insert them below the existing entries. It's definitely possible.

Maintaining a code path with a snippet for each possible viewing experience, back when REST was all the rage, was a bit obnoxious though.

toddmoreytoday at 3:39 PM

Nope, HTMX could power endless scroll features if you want them

show 1 reply
atoavtoday at 4:44 PM

Well I also do not really know the legitimate use case for infinite scroll (other than trying to push gambling/slot-machine tricks onto your userbase).

I get lazy-loading for pages that contain a ton of media of which the user will likely only see a fraction. But some people seem to think infinite scroll is a good idea with text based content as well..

show 1 reply