WorkerNavigator.connection

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

WorkerNavigator.connection は読み取り専用のプロパティで、ユーザーの端末の現在の帯域幅や接続が従量制であるかどうかなど、システムの接続に関する情報を格納した NetworkInformation オブジェクトを返します。これは、ユーザーの接続に応じて高解像度コンテンツと低解像度コンテンツを選択するために使用される可能性があります。

NetworkInformation オブジェクトです。

仕様書

Specification
Network Information API
# connection-attribute

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
connection

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.

関連情報