Page 1 of 1
Enable Lazy Loading in Lightbox
Posted: Thu Jan 07, 2021 7:11 pm
by nxr
Hello,
I can't find a solution for enable Lazy Loading in Lightbox.
I don't see something on the WWB or such a function is currently not possible ?
Re: Enable Lazy Loading in Lightbox
Posted: Thu Jan 07, 2021 9:06 pm
by Pablo
The built-in Photo Gallery supports lazy loading and lightboxes.
Re: Enable Lazy Loading in Lightbox
Posted: Thu Jan 07, 2021 10:15 pm
by nxr
Thank you for fast reply Pablo.
For enlarging individual images with a click, I use "Link"->"Open in a Light Box" and this way work perfectly.
I can turn on "Enable Lazy Loading", but then images do not display in Light Box ( I have an empty window ).
Re: Enable Lazy Loading in Lightbox
Posted: Fri Jan 08, 2021 7:04 am
by Pablo
This may be related to the selected lighthox.
All lightboxes are third party scripts so some of them may not be compatible with lazy loading.
I have tried fancybox, magnific-popup, LC-Lightbox, unitegallery and these seems to work.
Re: Enable Lazy Loading in Lightbox
Posted: Fri Jan 08, 2021 2:48 pm
by nxr
I've tried everything with no results:
Example:
http://wwb-test.pl
Example project:
http://wwb-test.pl/test.rar
Re: Enable Lazy Loading in Lightbox
Posted: Fri Jan 08, 2021 3:15 pm
by TomB
Just took a quick look at your source code. You might try changing the name of the large nxr-7382.jpg.
Per WWB Help:
Do not use spaces or other special characters in the filename of an image! Use underscores to connect words, this will prevent display problems in some browsers.
Re: Enable Lazy Loading in Lightbox
Posted: Fri Jan 08, 2021 3:27 pm
by Pablo
You are not using the Photo Gallery, as suggested.
Re: Enable Lazy Loading in Lightbox
Posted: Fri Jan 08, 2021 5:18 pm
by nxr
Thx for replies.
In this case - names of photos don't make any difference.
In the Photo Gallery - Enable Lazy Loading really work with Light Box. Thanks for the hint.
This solution is a bit longer in the design of the website and forces me to redo the entire project, but what to do...
I haven't checked before, and now - i need to correct

In this solution, I also can't hide the display of the photo title, but I will probably find a solution over time.
Pablo, there is a chance that in future updates "Enable Lazy Loading" will work in LightBox opened by "click-link" ?
Re: Enable Lazy Loading in Lightbox
Posted: Fri Jan 08, 2021 6:25 pm
by Pablo
Pablo, there is a chance that in future updates "Enable Lazy Loading" will work in LightBox opened by "click-link" ?
When using an image, the lightbox is triggered in a different way then for a gallery.
Most lightboxes initialize the images when the page loads. At that time the real (lazy loaded) image has not been set so that will 'confuse' the lightbox script.
Re: Enable Lazy Loading in Lightbox
Posted: Fri Jan 08, 2021 7:49 pm
by nxr
Ok. I understand.
Thank you for all info and support.
I will be using the Gallery.