Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I really want to use htmx on the next project but I am not sure how to make it handle poor network connections yet. The app I'm building will be used in areas with poor mobile connections - I want to submit a form, add it to a list and say it's pending saving, while the user can add more. Have to use hyperscript probably?

Can trivially do it in vanillajs so I'm sure it's possible?



Hmmmm... can you define a "poor connection"? The web used to work the "htmx"/hypermedia through all the dial-up years where things were REALLY slow. I see no reason it would not work now.


"Hmmm I know better than you". Peak HN lol. This is for middle of the desert time tracking.


Woudn't a native app be better for that anyway? Why depend on a browser for this?


How many people will give a runaround before answering the question?

It's meant to run on a laptop. In an existing site that people will already be using. It's free software. If you wanna build a native client, too, be my guest. I might at some point.


I thought the answer would be implicit in my question, but it's not very difficult to find an explicit answer, it's the second essay on the essays page: https://htmx.org/essays/when-to-use-hypermedia/#if-you-requi...

Having said that, for a time-tracking application, personally I wouldn't be OK with the risk of a browser screw-up (e.g. site data deleted, malware hoses the browser) losing tracking data. But you do you.


I mean, they use Google sheets or another web app already, so....


Yeah, I mean Google Sheets is created by Google, who can afford to throw craptons of money and warm bodies at the specific problem of making sure their browser is an inescapable part of the life of every modern computer user, so they can sell ads.

You and I don't have the same constraints and resources as Google.


literally no connection at times. A queued request cannot be lost.


I'll probably just build a native app with godot or something...


Browser dev tools have a throttle mode, might help.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: