135 likes
路
824 reads
18 comments
This is amazing! Never seen anything like this before!馃挴馃檶
Thank you for your comment.
Thank you for sharing.
Let me add something that may be useful: caniuse.com/online-status
Thank you for adding that.
thanks a lot for sharing this, this is a +1 for me
I'm glad you liked it.
This is something I've never seen before Bibek Kakati. Nice article, keep it up :)
Thank you! 馃帀
Cool! I was wondering how apps like Google Docs does this. 馃 It seems that now I know! 馃憣
I'm happy to know that you learned something new. 馃帀
Wow I learned something new today! Thanks for sharing :)
Happy to know that 馃槉.
This is really cool!
Thank you.
What about send a http request to google.com to test out status of internet connection, no question of false positive there?
Yeah, that is a normal workaround and you will get the current status but it can't replace the listener. To achieve the behavior of the listener, you will have to implement a polling mechanism.
Nice. Thank you. Definitely gonna play with it. Always found it cool that Facebook was able to tell me that I have no internet connection before I even knew it 馃槀
You can use it on your next web project.
And thank you for your comment Andrei Terecoasa.