lightgallery-desktop icon indicating copy to clipboard operation
lightgallery-desktop copied to clipboard

Do some performance optimizations

Open darxtrix opened this issue 8 years ago • 1 comments

Loaded a directory of 346 images and each image ~15 MB of size. I waited for ~40 seconds but nothing loaded up. Consider doing lazy loading of previews, i.e load the previews of first few images and then accordingly with time load others as the user navigates. Loading all at the time, eats up a lot of RAM and slows down the app.

darxtrix avatar May 27 '16 16:05 darxtrix

Hi, Thank you pointing this out. lightgallery loads only 3 images at a time. All the other images are loaded only when user navigate to different slides. But currently it is not effective for thumbnails. I think the issue is because of that. I will add lazy-loading for thumbnails also

sachinchoolur avatar Jun 06 '16 03:06 sachinchoolur