Google Adsense会多次加载脚本

时间:2015-04-08 13:38:40

标签: javascript adsense google-adwords

我有一个显示Google广告的页面 - 其中三个。广告初始化如下:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

<ins class="adsbygoogle class-resp" style="display:inline-block" data-ad-client="ca-pub-4283524395367264" data-ad-slot="8923673879"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>

<ins class="adsbygoogle class-resp" style="display:inline-block" data-ad-client="ca-pub-4283524395367264" data-ad-slot="8923673879"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>

<ins class="adsbygoogle class-resp" style="display:inline-block" data-ad-client="ca-pub-4283524395367264" data-ad-slot="8923673879"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>

问题是页面大小非常大,原因主要是每个广告似乎都需要自己下载以下每个脚本,即每个脚本都下载三次,每个页面加载大约700kb(哪个用于移动浏览太大了)

http://pagead2.googlesyndication.com/pagead/js/r20150402/r20150224/show_ads_impl.js http://pagead2.googlesyndication.com/pagead/js/r20150402/r20150224/expansion_embed.js http://pagead2.googlesyndication.com/pagead/js/r20150402/r20110914/abg.js

有没有人知道如何强制这三个广告共享上述三个脚本中的每一个的单个下载,或者每个广告是否都要下载每个广告的副本?

0 个答案:

没有答案