W3cubDocs

/Web APIs

NetworkInformation: effectiveType property

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The effectiveType read-only property of the NetworkInformation interface returns the effective type of the connection meaning one of 'slow-2g', '2g', '3g', or '4g'. This value is determined using a combination of recently observed, round-trip time and downlink values.

Value

A string that is either 'slow-2g', '2g', '3g', or '4g'.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
effectiveType 61 79 No No 48 No 50 38 No 45 No 3.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/effectiveType