Building a great website and having a user not able to browse due to their network connectivity is one of the biggest nightmares you can have. Often the user does not realize that while your website is working well, they have a problem with their network connection.
JavaScript offers a simple way to communicate to your user if they get disconnected from the internet while browsing your website.
This involves the JavaScript navigator API and an eventListener on the window object that will help us keep track of the user’s connectivity.

#programming #javascript-tips #javascript

Check a user’s network connectivity using JavaScript
1.10 GEEK