Skip to content

Add support for srcset  #282

@it-gro

Description

@it-gro

<img src="..." srcset="..."
https://css-tricks.com/responsive-images-youre-just-changing-resolutions-use-srcset/
yah

In the simple example above, all we're doing is telling the browser about some images that we have available and what size they are. The browser then does all the work figuring out which one will be best.

https://stackoverflow.com/questions/30460681/changing-image-src-depending-on-screen-size

<picture>
    <source media="(min-width: 900px)" srcset="BigImage.png">
    <source media="(min-width: 480px)" srcset="MediumImage.png">
    <img src="OtherImage.png" alt="IfItDoesntMatchAnyMedia">
</picture>

https://www.html5rocks.com/en/tutorials/responsive/picture-element/

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions