Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picture element + different formats #152

Open
koseduhemak opened this issue Mar 4, 2019 · 1 comment
Open

Picture element + different formats #152

koseduhemak opened this issue Mar 4, 2019 · 1 comment

Comments

@koseduhemak
Copy link

koseduhemak commented Mar 4, 2019

Chrome does load jpg instead of webp even the webp is provided.
Markup:

<picture>
    <source data-srcset="/dist/images/categories/historika_master.webp" type="image/webp">
    <source data-srcset="/dist/images/categories/historika_master.jpg" type="image/jpeg">
    <img src="/dist/loading.gif" data-src="/dist/images/categories/historika_master.jpg" class="card-img-top lazy-load category-slide" alt="Historika, Studentika, Militaria" title="Historika, Studentika, Militaria">
    <noscript>
        <img src="/dist/images/categories/historika_master.jpg" class=" card-img-top -slider category-slide" alt="Historika, Studentika, Militaria" title="Historika, Studentika, Militaria">
    </noscript>
</picture>

Is there anything I can do to force supported browsers to load the webp format?

@vedmant
Copy link

vedmant commented Sep 9, 2020

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants