This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The downlink
read-only property of the NetworkInformation
interface returns the effective bandwidth estimate in megabits per second, rounded to the nearest multiple of 25 kilobits per seconds. This value is based on recently observed application layer throughput across recently active connections, excluding connections made to a private address space. In the absence of recent bandwidth measurement data, the attribute value is determined by the properties of the underlying connection technology.
var downLink = NetworkInformation.downlink
A double
.
Specification | Status | Comment |
---|---|---|
Network Information API The definition of 'downlink' 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/downlink