Question

I've noticed a annoying bug.

When you navigate on my website, [the menu (on top right) acts normally].

But as soon as you go to a page with a Google AdSense ad, the menu appears completely exploded for 1 to 5 seconds (this means that we can see all the submenus).

If you have a slow connection, you'll notice even more than the others.

What's causing this? Is this the advertisement?

Was it helpful?

Solution

Thats because youre doing the hiding in JS id assume... try adding style="display: none; to the hidden elements so they are hidden before the menu is built with js.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top