DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 968,873 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for Can I use Google API to check internet connectivity?
Syed Umair
Syed Umair

Posted on

Can I use Google API to check internet connectivity?

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.

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.