NetworkInformation.effectiveType

Limited availability

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

Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。

effectiveTypeNetworkInformation インターフェイスの読み取り専用プロパティで、 このプロパティは、 'slow-2g', '2g', '3g', '4g' のいずれかを意味する接続の有効な種類を返します。この値は、最近観測された、ラウンドトリップ時間とダウンリンク値の組合せを使用して決定されます。

'slow-2g', '2g', '3g', '4g' の何れかの文字列です。

仕様書

Specification
Network Information API
# dom-networkinformation-effectivetype

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
effectiveType

Legend

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

Full support
Full support
No support
No support

関連情報