Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created July 6, 2020 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/ea670e2f3c6fb493c397b5a0e69628dd to your computer and use it in GitHub Desktop.
Save velotiotech/ea670e2f3c6fb493c397b5a0e69628dd to your computer and use it in GitHub Desktop.
Have you diagnosed your app’s performance yet? - Using WebP Image with fallback
<picture>
<source type="image/jp2" srcset="my-image.jp2">
<source type="image/jxr" srcset="my-image.jxr">
<source type="image/webp" srcset="my-image.webp">
<source type="image/jpeg" srcset="my-image.jpg">
<img src="my-image.jpg" alt="">
</picture>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment