Effective connection type - MDN Web Docs Glossary: Definitions of Web-related terms 编辑
Effective connection type (ECT) refers to the measured network performance, returning a cellular connection type, like 3G, even if the actual connection is tethered broadband or WiFi, based on the time between the browser requesting a page and effective type of the connection.
The values of 'slow-2g
', '2g
', '3g
', and '4g
' are determined using observed round-trip times and downlink values.
ECT | Minimum RTT | Maximum downlink | Explanation |
---|---|---|---|
slow-2g | 2000ms | 50 Kbps | The network is suited for small transfers only such as text-only pages. |
2g | 1400ms | 70 Kbps | The network is suited for transfers of small images. |
3g | 270ms | 700 Kbps | The network is suited for transfers of large assets such as high resolution images, audio, and SD video. |
4g | 0ms | ∞ | The network is suited for HD video, real-time video, etc. |
effectiveType is a property of the Network Information API, exposed to JavaScript via the navigator.connection object. To see your effective connection type, open the console of the developer tools of a supporting browser and enter the following:
navigator.connection.effectiveType;
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论