Enable Lazy Loading in Lightbox

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
nxr
 
 
Posts: 32
Joined: Mon Aug 19, 2019 5:00 pm

Enable Lazy Loading in Lightbox

Post 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 ?
User avatar
Pablo
 
Posts: 23326
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Enable Lazy Loading in Lightbox

Post by Pablo »

The built-in Photo Gallery supports lazy loading and lightboxes.
nxr
 
 
Posts: 32
Joined: Mon Aug 19, 2019 5:00 pm

Re: Enable Lazy Loading in Lightbox

Post 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 ).
User avatar
Pablo
 
Posts: 23326
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Enable Lazy Loading in Lightbox

Post 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.
nxr
 
 
Posts: 32
Joined: Mon Aug 19, 2019 5:00 pm

Re: Enable Lazy Loading in Lightbox

Post by nxr »

I've tried everything with no results:

Example: http://wwb-test.pl

Example project: http://wwb-test.pl/test.rar
TomB
 
 
Posts: 33
Joined: Wed Apr 12, 2017 8:22 pm

Re: Enable Lazy Loading in Lightbox

Post 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.
User avatar
Pablo
 
Posts: 23326
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Enable Lazy Loading in Lightbox

Post by Pablo »

You are not using the Photo Gallery, as suggested.
nxr
 
 
Posts: 32
Joined: Mon Aug 19, 2019 5:00 pm

Re: Enable Lazy Loading in Lightbox

Post 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" ?
User avatar
Pablo
 
Posts: 23326
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Enable Lazy Loading in Lightbox

Post 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.
nxr
 
 
Posts: 32
Joined: Mon Aug 19, 2019 5:00 pm

Re: Enable Lazy Loading in Lightbox

Post by nxr »

Ok. I understand.
Thank you for all info and support.
I will be using the Gallery.
Post Reply