Is Google adsense breaking my menu?

拜拜、爱过 提交于 2019-12-24 09:25:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!