Skip to content

Instantly share code, notes, and snippets.

@nirzaq
Created March 8, 2018 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nirzaq/edf5c16b7a05e4068cab4552e92e3a1b to your computer and use it in GitHub Desktop.
Save nirzaq/edf5c16b7a05e4068cab4552e92e3a1b to your computer and use it in GitHub Desktop.
Image Compression Script With Cloudinary for PWA
<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