3 ms·Using navigator.onLine and online/offline events to check for connectivity.2 points by tilt 15y ago