imagekit-developer / imagekit-angular

Angular SDK for ImageKit.io client side file upload and URL generation
https://imagekit.io
18 stars 20 forks source link

Functionality to pass in loading lazy #21

Closed flashjpr closed 1 year ago

flashjpr commented 2 years ago

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

tiboprea commented 2 years ago

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

flashjpr commented 2 years ago

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

imagekitio commented 2 years ago

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 commented 1 year ago

Fixed in version 2.0.0.