CSS prefers-reduced-data Media Feature

Beginner
2 examples
Updated: Nov 2026

Definition and Usage

The prefers-reduced-data media feature detects a request for lighter network usage. Skip large background images and heavy decorative assets when it matches.

CSS Syntax

syntax.css
@media (prefers-reduced-data: reduce) {
  .hero { background-image: none; }
}

Feature Values

ValueMeaningTry it
no-preferenceNo reduced-data preference is setTry it
reducePrefer lighter data usageTry it

CSS Examples

Drop heavy backgrounds

example.css
@media (prefers-reduced-data: reduce) {
  .hero {
    background-image: none;
    background-color: #0f172a;
  }
}
Try It Yourself

Browser Support

prefers-reduced-data is a CSS media feature.

✓ Media Queries Level 5

prefers-reduced-data

Treat as progressive enhancement.

88% Modern browsers
Google Chrome Recent
Full support
Mozilla Firefox Recent
Full support
Apple Safari Recent
Full support
Microsoft Edge Recent
Full support
prefers-reduced-data Growing support

Bottom line: Keep usable default styles outside the query.

Frequently Asked Questions

The user prefers content that uses less network data.
Support is still limited. Keep defaults reasonable and treat reduce as an enhancement.
Avoid large images, autoplay video backgrounds, and redundant webfonts.
No. Keep srcset and modern image formats too.
Some environments also expose Save-Data; media queries and HTTP hints can complement each other.

Next: prefers-reduced-transparency

Continue with prefers-reduced-transparency.

prefers-reduced-transparency →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

2 people found this page helpful