Last active
August 29, 2015 14:22
-
-
Save brh55/82269e2a5bf2e2ee607e to your computer and use it in GitHub Desktop.
Picture Element + WEBP + Using source element.type to use browser checking
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
WEBP = Better compression then JPEG | |
Use picture element for art direction. | |
Browser checking if it supports a source type | |
<picture> | |
<source type="image/webp"> | |
<!-- fall back --> | |
</picture> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment