JSFiddle - React, Tailwind, and code Playground

by Leo Lanese

JavaScript

/*
unknown, ethernet, 2G, 3G, 4G, wifi, none
navigator.connection.type

Can I use it?
implemented in Android 2.2+, chrome20+, Firefox12+
*/

alert("navigator.onLine: " + navigator.onLine); 
alert("navigator.connection: " + navigator.connection);
alert("window.clientInformation.onLine: " + window.clientInformation.onLine)