Created
March 8, 2018 04:21
-
-
Save nirzaq/edf5c16b7a05e4068cab4552e92e3a1b to your computer and use it in GitHub Desktop.
Image Compression Script With Cloudinary for PWA
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
<LazyLoad offset={100}> | |
<figure className="image"> | |
<img src={`https://res.cloudinary.com/{username}/image/fetch/c_scale,fl_force_strip.progressive,w_478/f_webp/${item.thumbnail}`} alt={item.title} /> | |
</figure> | |
</LazyLoad> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment