Hacker News new | ask | show | jobs
by brabel 1 day ago
It’s funny how hilariously simple that is and the parent commenter making it sound like you need a full JS framework for that instead.
4 comments

It also doesn't actually work correctly - if you scroll too quickly it doesn't load more content. Possibly just a CSS issue on the example because the last row is not visible when scrolled to the bottom of the page due to the footer and its large margin.
It looks simple because first it is largely broken and second it moves half of the logic to the backend.
Infinite scroll is not a good tool for his use-case. Users will filter and then try to Cmd-F. They will get annoyed if you can’t search. It’s just bad UX. You can use infinite scroll for things like Twitter feed. Product search is just a different kind of UI.
I mean I'm not a front-end guy I was genuinely curious how well HTMX handles this kind of case.