NEED TO PREFETCH LIGHTBOX FOR FASTER LOADING.

I am confused on how to code the prefetch lightbox. I need to make the lightboxes load faster because I am loading them on an android tablet. my current code is. Can someone help where to put the code in? Thanks

$w.onReady( function () {
//TODO: write your page related code here…
}); import wixWindow from ‘wix-window’;
$w.onReady( function () {
setTimeout( function () {wixWindow.lightbox.close()}, 7000);
} );

  1. Using all-caps in the post subject is against the forum rules.
  2. Delete this part:
//TO DELETE:
$w.onReady(function () {
//TODO: write your page related code here...
});
  1. Use the prefetchItems (inside the onReady curly parenthsis).
    wix-site-frontend - Velo API Reference - Wix.com
  2. Don’t expect to see any difference. In most cases it’s unnoticeable.

Sorry first time posting, I will give that a shot thank you!

You’re welcome :slight_smile: