Last active
August 24, 2018 07:23
-
-
Save zzbo/f0cfad7d8ec782a3b93de413850a406b to your computer and use it in GitHub Desktop.
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
function isSupportWebp() { | |
return !![].map && document.createElement('canvas').toDataURL('image/webp').indexOf('data:image/webp') == 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment