Last active
July 17, 2019 07:14
-
-
Save stefanjudis/0ec69162ff8bed17210a1b134a69e807 to your computer and use it in GitHub Desktop.
Tweet for image preload
This file contains hidden or 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
<link rel="preload" as="image" href="640.png" | |
imagesrcset="640.png 640w, 800.png 800w, 1024.png 1024w" | |
imagesizes="100vw"> | |
<!-- preload the correct image for the following element --> | |
<img src="640.png" | |
srcset="640.png 640w, 800.png 800w, 1024.png 1024w" | |
sizes="100vw"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment