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.

Table of effective connection types
ECTMinimum RTTMaximum downlinkExplanation
slow-2g2000ms50 KbpsThe network is suited for small transfers only such as text-only pages.
2g1400ms70 KbpsThe network is suited for transfers of small images.
3g270ms700 KbpsThe network is suited for transfers of large assets such as high resolution images, audio, and SD video.
4g0msThe 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:111 次

字数:2475

最后编辑:6年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文