DEV Community

loading...
Cover image for Can I use Google API to check internet connectivity?

Can I use Google API to check internet connectivity?

Syed Umair
・1 min read

I am writing a network checker that is effective than navigator.onLine. It fails to detect the internet connectivity in the local network.

I found this link http://clients3.google.com/generate_204 in the chromium blog post and planning to use this in the module.

Your thoughts are welcome.

Discussion (0)