scaleflex / react-cloudimage-responsive

Cloudimage Responsive will smartly resize, compress and accelerate images across the World in your site for all devices. The plugin supports lazy loading technique with fancy animation on image load. Any questions or issues, please report to https://github.com/scaleflex/react-cloudimage-responsive/issues
MIT License
45 stars 16 forks source link

No fine controls on image configuration including lazy loading #7

Closed theoinglis closed 5 years ago

theoinglis commented 5 years ago

It would be nice to be able to disable lazy loading or provide further lazy loading configuration on a per component basis.

e.g. I have a drawer on the side of my application that loads a list of images. This drawer scrolls independently from the main part of the application, which means that the lazy load images don't render. The only way to fix this currently would be to disable lazy loading for all images, which is not ideal. Alternatively, if I could set scrollContainer (as is possible in react-lazyload) then I could also fix this issue, but there is no property to pass this config through

dzmitry-stramavus commented 5 years ago

done in v1.6.0

dzmitry-stramavus commented 5 years ago

@theoinglis , see the doc

https://github.com/scaleflex/react-cloudimage-responsive#lazyloading-1