React-slick: Lazy load one div ahead

Created on 14 Mar 2018  路  11Comments  路  Source: akiran/react-slick

Currently lazy loading for sliders is available properly. But we need to load one div ahead of current div, means, if first div is in view port, i want to keep the second div loaded and ready to view. Same should be happen for all, if third div is in view port, fourth should get loaded. Because, Images in div are downloading after coming to view port, so for time being we are showing place holder, to avoid this, if we implemented how much div ahead we need to lazy loading, it will be useful.

On Deck

Most helpful comment

@laveesingh I think still the feature requested by @AnandhaprabhuSp is not implemented.
I also want the same feature. I want to load the next two images from the current one which is in viewport. I didn't find any solution in the latest version 0.23.1

All 11 comments

We currently don't support such lazy offset. But commit: e0dfd32a6b88e0bcc555f243148f7383d5fc9eb5 implements progressive lazyloading as reflected by slick.
These changes will be released soon.

That looks great. Any idea of ETA?

probably today

Progressive Lazyload has been implemented.

@laveesingh Is there any interest to support the requested feature? I am currently looking into implementing the exact same thing for a gallery in a mobile website.

There is would be wasteful to load all the images immediately.

@laveesingh I think still the feature requested by @AnandhaprabhuSp is not implemented.
I also want the same feature. I want to load the next two images from the current one which is in viewport. I didn't find any solution in the latest version 0.23.1

@AnandhaprabhuSp Did you switch to other library in order to be able to implement this feature?

@bondom - Check this https://github.com/chidanandan/react-slick.git - Here it is working as expected.

@laveesingh I think still the feature requested by @AnandhaprabhuSp is not implemented.
I also want the same feature. I want to load the next two images from the current one which is in viewport. I didn't find any solution in the latest version 0.23.1

@vaibhavi3t - Try this https://github.com/chidanandan/react-slick.git

Is there anyway to preload the next 1 or even 2 images ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amishPro picture amishPro  路  3Comments

PolGuixe picture PolGuixe  路  3Comments

ramyatrouny picture ramyatrouny  路  3Comments

will88 picture will88  路  3Comments

adamthewan picture adamthewan  路  4Comments