Google adsense破坏了我的菜单吗? [英] Is Google adsense breaking my menu?
问题描述
我注意到一个烦人的错误。
I've noticed a annoying bug.
当您在我的网站上导航时, [菜单(在右上角)正常运行] 。
When you navigate on my website, [the menu (on top right) acts normally].
但是,一旦您转到带有Google AdSense广告的页面,菜单就会完全爆炸1至5秒钟(这意味着我们可以看到所有子菜单)。
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?
推荐答案
那是因为您在JS ID中进行隐藏假设...请尝试添加 style = display:none;
到隐藏元素,以便在使用js构建菜单之前将它们隐藏。
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.
这篇关于Google adsense破坏了我的菜单吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!