问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/3444940/is-google-adsense-breaking-my-menu