Created
February 10, 2020 00:20
-
-
Save 3stacks/c8d709e329b69cd31fa40d9b2fcc82ca to your computer and use it in GitHub Desktop.
prefers-reduced-data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.image { | |
background-image: url('original.webp'); | |
} | |
@media (prefers-reduced-data: reduce) { | |
.image { | |
background-image: url('compressed.webp'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment