The Network Information API enables web applications to access the underlying connection information of the device.
Docs: https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation https://developer.mozilla.org/en-US/docs/Web/API/Navigator/connection https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/connection
Samples: https://github.com/GoogleChrome/samples/tree/gh-pages/network-information