Web/API/WorkerNavigator/connection

From Get docs

This is an experimental technologyCheck the Browser compatibility table carefully before using this in production.


The WorkerNavigator.connection read-only property returns a NetworkInformation object containing information about the system's connection, such as the current bandwidth of the user's device or whether the connection is metered. This could be used to select high definition content or low definition content based on the user's connection.

Syntax

connectionInfo = self.navigator.connection

Specifications

Specification Status Comment
Network Information APIThe definition of 'Navigator.connection' in that specification. Draft Initial specification

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet

connection

Experimental'

Chrome

Full support 61

Edge

Full support ≤79

Firefox

No support No

IE

No support No

Opera

Full support Yes

Safari

No support No

WebView Android

Full support 50

Chrome Android

Full support 38

Firefox Android

Full support 53

Opera Android

Full support 37

Safari iOS

No support No

Samsung Internet Android

Full support 3.0

Legend

Full support  
Full support
No support  
No support
Experimental. Expect behavior to change in the future.'
Experimental. Expect behavior to change in the future.


See also