Skip to content

Instantly share code, notes, and snippets.

@stefanjudis stefanjudis/index.html
Last active Jul 17, 2019

Embed
What would you like to do?
Tweet for image preload
<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
You can’t perform that action at this time.