NetworkInformation: effectiveType Eigenschaft

Limited availability

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

Hinweis: Diese Funktion ist in Web Workers verfügbar.

Die schreibgeschützte effectiveType-Eigenschaft der NetworkInformation-Schnittstelle gibt den effektiven Typ der Verbindung zurück, das heißt, einen von slow-2g, 2g, 3g oder 4g. Dieser Wert wird mithilfe einer Kombination aus kürzlich beobachteten Ping-Zeiten und Downlink-Werten bestimmt.

Wert

Ein String, der entweder slow-2g, 2g, 3g oder 4g ist.

Spezifikationen

Specification
Network Information API
# dom-networkinformation-effectivetype

Browser-Kompatibilität

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

Siehe auch