Show HN: Make your app handle going offline
github.hubspot.com
github.hubspot.com
Is this something I want as a user? If an app seems to be offline, I tend to do various things just to check or re-establish connectivity. Say, hit the Send button a few times, order columns, filter, search, whatever. Stuff, I wouldn't do if I had connection.
Once the app reconnects, all this nonsense would be executed. I'm not so sure if I'd really want this as a user.
This leads to the question: How fast does it notice that the app went offline? Do I get the chance to do stupid things as a user or will I be shown the "you're offline" message soon enough?
So in your example, you'd know almost immediately after you clicked the "Send" button.
Take Trello for example, super useful when working with teams and on boards with a lot of activity.
Most frequently, this is done by disabling submit buttons or debouncing asynchronous function calls that happen as a result of a UI action.
Thanks for releasing your internal libs.
I see an enormous load of extra complexities for what seems to be very little advantage.
On the other hand, if you list all the queued non-GET AJAX call for the user to resend manually, it could be good.
I'm ambivalent :(
And I didn't say the library was bad, quite the contrary.
Two thoughts right now (make a gh issue if either is something you need):
- Make an option to only enable request remaking for GET requests
- Make an option to throw out POST/PUT/DELETE data if it's more than X minutes old
Listing the requests is interesting, but would obviously require the programmer to associate the request with the user-facing feature it enables. Something like messenger might be better for that: http://github.hubspot.com/messenger/
Making the app less prone to these issues is certainly going to help build something more robust, so thanks a lot!
Regarding this particular module: is there any chance of combining this with a websocket connection (particularly socket.io)? I don't really care much for off-site requests, but notifiying the user of a disconnected socket would play well into this.
Edit: It's no longer included in the minified build
> It has a number of beautiful themes and requires no configuration
"Beautiful" is a word that's really getting overused nowadays, and I cringe whenever I see it.
Edit: I anticipated the downvoting