缩短代码加载时间
概览
广告代码库脚本完成加载所需的时间。这是指从网页加载到代码加载完毕的时间间隔。
建议
此指标不代表具体问题。它应该用于帮助找出有待改进的领域并跟踪一段时间内的改进。
我们的目标是缩短广告代码库脚本的加载用时。确保通过其他更具体的审核应该能对此指标产生重大影响。具体而言,以下审核可能会影响此用时:
支持以下广告代码库脚本:
媒体库 |
脚本 |
AdSense |
pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
pagead2.googlesyndication.com/pagead/show_ads.js
|
Google 发布商代码 |
.../gpt/pubads_impl_<version>.js |
避免常见的 GPT 实现错误
遵循代码最佳做法,以尽可能缩短网页延迟时间
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-06-26。
[null,null,["最后更新时间 (UTC):2024-06-26。"],[[["This metric measures the time it takes for the ad tag library script to load from the start of page load."],["Improving other specific ad script audits, such as avoiding render-blocking resources or loading tags asynchronously, will positively impact this metric."],["The goal is to reduce the script load time, and this metric helps track improvement in that area."],["Common ad tag libraries included in this measurement are AdSense and Google Publisher Tag."]]],["The content focuses on the ad tag library script load time, measured from page load to tag load. The primary aim is to reduce this time, which can be achieved by improving other areas. Key actions include passing audits like those related to the ad request waterfall, avoiding render-blocking resources, loading scripts statically, loading tags asynchronously, and using the recommended GPT host. These actions should positively impact this metric, but it is not indicative of a specific issue. Supported ad tag libraries are provided, including AdSense and Google Publisher Tag.\n"]]