views:

26

answers:

1

Hello, i've noticed a annoying bug.

When you navigate on my website, the menu (on top right) acts normally : http://bit.ly/cPcnGA

But as soon as you go on a page where is an google adsense ad, the menu appears for 1seconds to 5 seconds, complitely exploded (means that we can see all the subsmenu)

Example here : http://bit.ly/971vMl

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

What's causing this ? Is this the advertisment ?

If you have a solution, you're welcome ;)

Thank you

+1  A: 

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.

prodigitalson
ok i hope this won't break the behaviour of the menu, will test it ASAP. Thanks
Tristan
Its possible, but the issue with the problem is the time it takes the page to load sp that jquery can do its thing. if you limit the number of scripts you include you can speed this up as well though there will likely be some delay.
prodigitalson