Last active
March 28, 2019 08:05
-
-
Save himanshu-myupchar/cc32dd84db520bc648b7ff2cdbb13eed to your computer and use it in GitHub Desktop.
Frontend to handle webp
This file contains 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
<picture> | |
<source type="image/webp" srcset="<%=@post.asset.url(:webp)%>"> | |
<source type="<%=@post.asset_content_type%>" srcset="<%=@post.asset.url%>"> | |
<img class="img-fluid img-center img-responsive" data-original="<%=@post.asset.url%>" alt="<%=@post.title%>" src=""/> | |
</picture> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment