ivopetkov / responsively-lazy

Lazy load responsive images and HTML
https://ivopetkov.com/responsively-lazy/
1.09k stars 43 forks source link

Lazy load Instagram Images - Instagram Api display #23

Closed skigo closed 8 months ago

skigo commented 3 years ago

Hello,

I am looking a way to lazy load the images from instagram basic display api.

I use the code: <img class="instagram-feed__item__image" data-src="<?php echo $image_url; ?>" alt="<?php echo $item['caption']; ?>" class="responsively-lazy">

But the Image url is like: https://scontent.cdninstagram.com/v/t51.29350-15/133049651_2767029926897156_3167520314147899187_n.jpg?_nc_cat=105&ccb=2&_nc_sid=8ae9d6&_nc_ohc=LbOZsO0i_PsAX_swsGB&_nc_ht=scontent.cdninstagram.com&oh=d7ca6bd41c09130304ad5e6b760a9889&oe=60137C1B

Any idea how to apply lazy load?

Regards, Dimitris

ivopetkov commented 8 months ago

Version 3.0 is now released 🎉 Please take a look at new API.