Speed up lightbox display

@jonatandor35 Thx now it works :slight_smile:
But to actually … I don’t see any improvement on speed.

@leon-geraedts please give your feedback here where there is on-going conversation about the pre-fetch.

@contact53319 thx

I am trying to use the following code for the lightbox to reduce or eliminate the delay with no positive results:


import wixWindow from 'wix-window';

export function button6_onClick(event) {
setTimeout(() => {
wixWindow.openLightbox("Cathedral");
}, 1000);
}

What I would like to know is how can prefetch help me and how do I go about implementing it in this senario? Thank you.

Edit: I have tried the following code but am not sure if I am implementing it correctly as I see no improvement in speed of the light box.

import wixWindow from 'wix-window';
import wixSite from 'wix-site';

$w.onReady(function () {
let response = wixSite.prefetchPageResources( {
"lightboxes": ["Cathedral", "Casa Concha"]
} );
if(response.errors) {
// handle errors
}
});

When is this issue going to be solved? Its unacceptably slow, really bad UX!

same issue, this doesn’t make the lightbox display any faster, it’s extremely slow… any real solution coming?

Why can’t wix just add a sidemenu as a normal feature? Instead of everybody making a make-shift one.