如何使Google Adsense加载到页面其余部分之后 [英] How to make Google Adsense load last after the rest of page

查看:92
本文介绍了如何使Google Adsense加载到页面其余部分之后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面,上面有Google Adsense广告。内容在左侧,广告在右侧。
页面下载时,它首先检索内容,然后从Google Adsense广告开始。在此期间,直到完整下载整个广告后,页面的其余部分(页脚图像)才被提取。

I have a page with Google Adsense ads. Content is to the left and ads are to the right. When the page is downloading it retrieves the content first and then start with the Google Adsense ads. During that time the rest of the page (footer images) is not fetched until the whole ad is completely downloaded.

如何制作我的所有页面(内容,图像) )首先加载,最后加载广告?

How can I make all of my page (content, images) load first and the ad load last?

推荐答案

您必须将广告代码放在html的底部( php,asp等)页面,以便浏览器最后请求该数据。浏览器从文档顶部读取到文档末尾,并一路请求。我认为这没有解决方法。

You'll have to put the ad code at the bottom of your html (php, asp, whatever) page so that the browser requests that data last. Browsers read from the top of the document to the end of the document and request along the way. I don't think there's any way around that.

您仍然可以使用css将广告放在页面顶部附近。一个绝对的位置,或一些疯狂的浮动可能能够做到这一点。

You can still place the ad near the top of the page using css. An absolute position, or some crazy floats might be able to do it.

这篇关于如何使Google Adsense加载到页面其余部分之后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆