imagekit-angular icon indicating copy to clipboard operation
imagekit-angular copied to clipboard

Functionality to pass in loading lazy

Open flashjpr opened this issue 3 years ago • 3 comments

At the moment, there is no way to pass the loading="lazy" attribute for lazy loading. Expose an Input() on the ik-image component to allow passing such input.

https://developer.mozilla.org/en-US/docs/Web/Performance/Lazy_loading

flashjpr avatar Nov 04 '21 20:11 flashjpr

It would be great to have this functionality. I've been trying to find a workaround but I couldn't.

tiboprea avatar Nov 04 '21 20:11 tiboprea

Any update on this? Are you planning to support it? Do you accept a PR if we do it?

flashjpr avatar Nov 15 '21 22:11 flashjpr

Hi Alex, we will be releasing a new version of this SDK in around 8 weeks with the aim to solve these issues and improve developer experience.

imagekitio avatar Nov 16 '21 02:11 imagekitio

Fixed in version 2.0.0.

imagekitio avatar Feb 14 '23 10:02 imagekitio