web api instance property
PreferenceManager: reducedData property
Limited availabilitySecure context
The reducedData read-only property of the PreferenceManager interface returns a PreferenceObject used to override the user’s preference for the reduced data of the site.
Valid reducedData value settings are reduce and no-preference.
Value
A PreferenceObject used to override the user’s preference for the reduced data of the site.
Examples
Basic usage
This example demonstrates how to query the user’s reduced data preference.
if (navigator.preferences.reducedData.value === "reduce") {
// The user prefers you use less data.
} else {
// The user has stated no preference regarding data use.
}
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.