News for hackers. Stuff that matters.
Re:PrimateJS: Svelte and Htmx Quick Start by TylerE on Tuesday April 11, 2023 @06:17PM (#35532374)
How would that work? If I’m readying it right, there are client side actions that need to mutate the html, that have no server side component at all, and you wouldn’t want to round trip because the latency would be too annoying anyway.
Re:PrimateJS: Svelte and Htmx Quick Start by jonomacd on Tuesday April 11, 2023 @06:34PM (#35532556)
Again I don't know if it is the best for their current use case but you could probably make something that is quite elegant in htmx.

There are a few actions that are exclusively client side, like opening a context menu, that I'd use a "sprinkle of JavaScript". There is a recently added htmx attribute "hx-on" that might work well for those cases.

I'd also not discount doing a round trip for some of that. Those GET requests can be very fast and will be cached. Given the poor performance of many SPA's a quick, cache-able GET request might look pretty good.