This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The effectiveType read-only property of the NetworkInformation interface returns the effective type of the connection meaning one of 'slow-2g', '2g', '3g', or '4g'. This value is determined using a combination of recently observed, round-trip time and downlink values.
var effectiveType = NetworkInformation.effectiveType
A String containing one of 'slow-2g', '2g', '3g', or '4g'.
| Specification | Status | Comment |
|---|---|---|
| Network Information API The definition of 'effectiveType' in that specification. | Editor's Draft | Initial definition. |
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| Basic support | 61 | ? | ? | 48 | ? |
| Available in workers | 61 | ? | ? | 48 | ? |
| Feature | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|---|
| Basic support | 50 | 38 | ? | ? | ? | 37 | ? |
| Available in workers | 50 | 38 | ? | ? | ? | 37 | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/effectiveType