Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Connection.metered

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.

The Connection.metered read-only property is a Boolean flag indicating if the connection is metered (e.g. pay-per-use).

Syntax

metered = connection.metered

On return, metered is true if the user is being charged per unit of network usage; otherwise it's false.

Specifications

Specification Status Comment
Network Information API
The definition of 'Connection.metered' in that specification.
Editor's Draft Initial specification.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support Not supported 12.0 moz Not supported Not supported Not supported
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support Not supported 12.0 moz Not supported Not supported Not supported

Gecko notes

  • The Network API can be disabled using the dom.network.enabled preference.
  • As of Gecko 12.0, the Network API is implemented for Android systems only. Support for Linux (bug 712442) and Windows (bug 721306) systems is in progress.

See also

Document Tags and Contributors

 Contributors to this page: fscholz, teoli, tregagnon, Jeremie, Sheppy
 Last updated by: fscholz,