prefers-reduced-data

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

Draft
This page is not complete.

Note: This feature is not supported by any user agent and its specifics are subject to change.

The prefers-reduced-data CSS media feature is used to detect if the user has requested the web content that consumes less internet traffic.

Syntax

no-preference
Indicates that the user has made no preference known to the system. This keyword value evaluates as false in the boolean context.
reduce
Indicates that user has expressed the preference for lightweight alternate content.

User preferences

Currently no user agent implements this feature, although various operating systems do support such preferences and if this media query is ever implemented user agents will likely rely on the settings provided by the operating system.

Examples

Note: No browser currently implements this feature so the following example will not work.

This example embeds high-resolution background image by default, substituting it for a plain color background if user requested to use less data.

HTML

<div class="data">low resource box</div>

CSS

.data {
  background-image:
    url("https://mdn.mozillademos.org/files/6457/mdn_logo_only_color.png");
}

@media (prefers-reduced-data: reduce) {
  .data {
    color: blue;
  }
}

Result

Specifications

Specification Status Comment
Media Queries Level 5
The definition of 'reduced-data' in that specification.
Editor's Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
prefers-reduced-data media feature
Experimental
Chrome No support No
Notes
No support No
Notes
Notes See bug 1051189.
Edge No support No
Notes
No support No
Notes
Notes See bug 1051189.
Firefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support No
Notes
No support No
Notes
Notes See bug 1051189.
Chrome Android No support No
Notes
No support No
Notes
Notes See bug 1051189.
Firefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android No support No

Legend

No support  
No support
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.
See implementation notes.
See implementation notes.

See also