DEV Community

Discussion on: Build a lightweight Internet Detect Feature with VanillaJS

Collapse
 
ojanti profile image
John Ojanti Itebu

Ive read several pieces that indicate that browser vendors seem not to agree on on how to define offline/online.
e.g some browser vendors define "onLine" as connected to "a network" as opposed to "the internet" while ive seen several bug reports for this on Google chrome.
So different browsers may have a tiny tweaks/hacks to get it to work for the requirement in the post.

If you have a different experience, having tested with multiple browsers, I'll like to know. 🙂