Minoru / blog.tty8.org

Source code for my blog
https://blog.tty8.org
9 stars 1 forks source link

Provide images in multiple sizes #28

Open Minoru opened 7 years ago

Minoru commented 7 years ago

srcset and sizes attributes of <img> let us specify different files to be fetched depending on the value of media query. A post at bitsofco.de is a nice reference.

Minoru commented 7 years ago

Another interesting overview, with some more details of how browsers actually process the attributes.