Hello, is there code that makes the lightbox load as soon as the homepage is loaded. As of now it takes 15 seconds after home page.

Hello Pallaci,

I timestamped this video at the correct moment to show you how to do that,


Thanks for the response Majd. I have already done that and set to “0” seconds for the lightbox to appear. It still however takes almost 20 seconds after the home page is loaded. Do you have any other suggestions? I have a slideshow in my lightbox. I needed a slideshow with a close button.

Hello Pallavi,

If you used a already built lightbox from the wix editor, it will have some default values. To fix this you can copy the design of your old one into a new one, and fully customize it as you wish.

Slideshows don’t come with close buttons, but there are many ways to close a lightbox, look here :


I am now trying to write a code that opens a lightbox on Mousin() event of the home page.

import wixWindow from ‘wix-window’;
export function page1_mouseIn(event, $w) {
//Add your code for this event here:

It isn’t working. Nothing happens at all. Is there another way of doing this?


Try writing it like this:

 $w("#myElement").onMouseIn( (event, $w) => { 
 } );

Let me know if this works,

On second thought if you are going with that technique it is better to be on view port entered like seen in the documentation here, in any case I would try both: