Topic: MDB Lightbox Question
I have MDB Lightbox installed and have a webpage (gallery) with 60 or so thumbnails linking to larger images and it is technically working but It seems like the lightbox doesn't work until all large images are loaded.
Is there any way to have the images lazy loaded or somehow loaded as needed? It's very frustrating that I can't click on the first thumbnail and have the large image open until all 60 large photos are loaded.
Thanks for any help.
jtaite answered 2 years ago
Another suggestion, if you are working on updating the Lightbox is adding a slideshow feature!
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 5.0.0
- Device: Desktop
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No
mlazaru staff commented 2 years ago
Hi,
could you send me a link to your page or recreate the problem in a snippet?
jtaite commented 2 years ago
I can't link to the page as it's under development and password protected - not to mention, many of the photos are a bit adult. I could grant access if it's in a one to one email, but not in a public forum like this.
After experimenting with more gallery pages, the more photos there are in a gallery, the longer it takes to load the first large image when you click on the first thumbnail image.
I have a gallery with 120 images and once clicking on the first thumbnail it takes 12 seconds to open the first large images. In a gallery with 90 images, it takes 8 seconds to open the first image.
Once the first large image has been opened, then the gallery is working perfectly without delay or pause whether it's swiping through the large photos or clicking a thumbnail.
Any chance to get email support?
mlazaru staff commented 2 years ago
I was able to reproduce the problem, so I think in this case email support will not be necessary, unless there is something more we can help with. We will try to fix this lightbox optimization problem soon.
jtaite commented 2 years ago
That would be awesome. Your lightbox is one of the best I've seen/used. Looking forward to the fix.