3 ms·
I used the infinite scroll for a web project and it works well. The client however did not want to load new content when reached the bottom of the page. He want
by masfoobar 3y ago
I used the infinite scroll for a web project and it works well.
The client however did not want to load new content when reached the bottom of the page. He wanted it a continuous flow so you dont notice the load at all.
With this, I placed the htmx code not on the bottom record, but 50th from bottom. This worked well, but if you scroll really fast it misses the trigger altogether.
I am sure there is a way to fix this, perhaps with additional javascript - but something to point out.
Despite the above, I do like HTMX. Really removes a lot of libraries (and JS frameworks) which is nothing but good news for me.
- recursivedoubts 3y agoI think for something like that you might use the `intersect` event, it's not as dependent on timing at `revealed`
- masfoobar 3y agoThank you for the suggestion. When I am back on the project -- will check it out. Thanks again.