andyyou / react-coverflow

A Coverflow effect component of React version made for the web.
http://andyyou.github.io/react-coverflow/
MIT License
347 stars 142 forks source link

Placeholder+renderImage design for lots of images #63

Open mingyuan-xia opened 5 years ago

mingyuan-xia commented 5 years ago

Hi, nice work. Basically I am using the coverflow to show all images in a local folder (with Electron). Sometimes I can get over 1k to 20k images, which eats a lot of memory because every one of them is rendered as an img and starts loading once the coverflow is created. Since we have the nice displayQuantityOfSide property, is there a way to lazily call a method renderImage once an item should appear?

asalem1 commented 5 years ago

@mingyuan-xia that's a great question. I can see about creating a future iteration of that in the project as it sounds like something that could be useful and fun to implement