Comment

Comment by rpastuszak

I love the idea! I think htmx occupies a very interesting skill-set/use-case niche and I think an RSS reader is a cool example of that.

One piece of feedback: the UI would feel more snappy if there was a way of applying optimistic updates/signalling to the user the loading state. I'm not an htmx expert but I think you can do that with alpine.

Example:

When I click on the feed item, there's a short delay before the UI updates itself with page content. Sometimes the delay can take a few seconds.

Ideally, I'd see a simple loading indicator or an animation signalling the loading state, even greying out the element would be enough.

(In that particular case you could probably cheat a bit with CSS, by styling the :active state of the list item element, and then adding a very slow transition. But, that doesn't solve the general issue)

Edit:

Thanks @anyone explaining that this is achievable with `hx-indicator`. I never learn by just reading the docs so I guess I need to build sth with htmx.

parent rpastuszak 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton