Speed up my page

@welchjoshua818 But if I translate your code into English, this it what it’ll mean:
Once the page got loaded and the $w is ready, wait 300ms and then add an event handler that on mouse-in will immediately collapse the drop-down.

I’m pretty sure that’s not what you wanted to do.

  • some other lines are meaningless. For example:
$w('#lsdropdown').onMouseIn(()=>{$w('#lsdropdown').expand();});

This line means that when the mouse get into the $w(‘#lsbutton’) area it should expand. But if it’s not already expanded, the mouse won’t be able to get over it.

Try to think what you need to achieve, and fix the code in accordance.