Bit #19
You can use the (Network Information API)[https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation] to get information about the connection a device is using.
console.log(navigator.connection)
// PrintsNetworkInformation { downlink: 10, effectiveType: "4g", onchange: null, rtt: 250, saveData: false}