I have looked and cannot find this answer on this site, or google.
As a workaround for a slow loading Lightbox (set to open immediately when you navigate to my site) the first time you view my homepage I have a coloured box that obscures much of the page, which I have made disappear after 2 seconds, using the following code:
setTimeout ( function (){ $w ( “#disappearingbox” ). hide () }, 2 000 );
Works great for the first view, and sorts Lightbox delay issue. But then when you return to homepage from somewhere else on site, your sat looking at a blank box for 2 seconds until it disappears.
Does anyone know how I can code so that when I navigate back to my homepage from somewhere else on my site, the disappearing box never appears at all.
Or to put it another way:
Can I make the “disappearing box” only appear (and therefore need to disappear) on the first view of the homepage?
Help very much appreciated for a brand new coder!