TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Make your app handle going offline

151 pointsby afschwartzover 11 years ago

14 comments

WAover 11 years ago
&gt; It captures AJAX requests which were made while the connection was down, and remakes them when it&#x27;s back up, so your app reacts perfectly.<p>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&#x27;t do if I had connection.<p>Once the app reconnects, all this nonsense would be executed. I&#x27;m not so sure if I&#x27;d really want this as a user.<p>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 &quot;you&#x27;re offline&quot; message soon enough?
评论 #6612294 未加载
评论 #6612242 未加载
评论 #6610554 未加载
评论 #6611151 未加载
评论 #6610729 未加载
ssafejavaover 11 years ago
You guys have put out some great pieces of JS in the last year and the quality is getting better. I&#x27;m a big fan of how this is not jQuery dependent and the code is simple. I&#x27;ve been watching the HubSpot repos since globalMessenger and the code and presentation are far above par.<p>Thanks for releasing your internal libs.
pothiboover 11 years ago
I think this is a neat proof of concept. However, you have to be extremely careful to not get out of sync hell.<p>I see an enormous load of extra complexities for what seems to be very little advantage.<p>On the other hand, if you list all the queued non-GET AJAX call for the user to resend manually, it could be good.<p>I&#x27;m ambivalent :(
评论 #6611179 未加载
评论 #6612322 未加载
drsimover 11 years ago
Kudos to hubspot: they&#x27;re pushing out some nice js pieces from their app
Renaudover 11 years ago
This comes at the perfect moment for me: I&#x27;m building an inventory web app used in warehouses on tablets and I&#x27;m faced with connectivity issues (incomplete or fluctuating WiFi coverage for instance).<p>Making the app less prone to these issues is certainly going to help build something more robust, so thanks a lot!
评论 #6612254 未加载
arvidkahlover 11 years ago
The more I look into HubSpot libraries, the more I am amazed by their approach. To the point, small and flexible. And if the only annoyance people can bring up is a snake game, then you should be proud :)<p>Regarding this particular module: is there any chance of combining this with a websocket connection (particularly socket.io)? I don&#x27;t really care much for off-site requests, but notifiying the user of a disconnected socket would play well into this.
评论 #6612365 未加载
contrahaxover 11 years ago
Why is there a snake game wasting space in the source code?
评论 #6610333 未加载
smclover 11 years ago
This is actually a very cool idea, but I&#x27;m gonna raise a minor nitpick which has been growing inside me over the last few months:<p>&gt; It has a number of beautiful themes and requires no configuration<p>&quot;Beautiful&quot; is a word that&#x27;s really getting overused nowadays, and I cringe whenever I see it.<p>Edit: I anticipated the downvoting
评论 #6612335 未加载
NARKOZover 11 years ago
How do you decide when to put `#hubspot-open-source` hashtag to repo description?
评论 #6612341 未加载
alinawabover 11 years ago
This is a really useful starting point, thanks for sharing
antiheroover 11 years ago
This looks neat, has anyone tried it with AngularJS?
while1over 11 years ago
Cool! This looks really nice and definitely useful!
sifaratover 11 years ago
can anyone explain how to set options like i want to disable requests and set it to false. appreciate.
uaygsfdbzfover 11 years ago
This is just what i need!! For my html5,json,localstorage app. But what if the user press Reload ? But what if the browser crasher or closed normally, does the buffer stay ? if not then it&#x27;s useless!