Live data from Hacker News

Show HN: Make your app handle going offline

github.hubspot.com

1–10 of 30 posts

Re: Show HN: Make your app handle going offline

#6
You guys have put out some great pieces of JS in the last year and the quality is getting better. I'm a big fan of how this is not jQuery dependent and the code is simple. I've been watching the HubSpot repos since globalMessenger and the code and presentation are far above par.

Thanks for releasing your internal libs.

Re: Show HN: Make your app handle going offline

#7
> It captures AJAX requests which were made while the connection was down, and remakes them when it's back up, so your app reacts perfectly.

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?

Re: Show HN: Make your app handle going offline

#8
post #7

> It captures AJAX requests which were made while the connection was down, and remakes them when it's back up, so your app reacts perfectly. 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 reconn…

If either the native offline event fires (where supported) or a single XHR request has a timeout or error, we fire our offline event, which triggers the UI to update.

So in your example, you'd know almost immediately after you clicked the "Send" button.

Re: Show HN: Make your app handle going offline

#9
post #7

> It captures AJAX requests which were made while the connection was down, and remakes them when it's back up, so your app reacts perfectly. 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 reconn…

Usability depends on app.

Take Trello for example, super useful when working with teams and on boards with a lot of activity.

Re: Show HN: Make your app handle going offline

#10
I think this is a neat proof of concept. However, you have to be extremely careful to not get out of sync hell.

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 :(

Post reply on HN