缩短广告 JS 阻塞时间
概览
此项评估旨在衡量可归因于广告相关脚本的阻塞时间。这可捕获 JS 线程被广告相关脚本阻塞的时间过长,足以被用户注意到的时间,因为它可能会直接影响输入延迟或内容加载。
建议
广告 JS 阻塞时间的最重要因素是一次加载的广告数量。我们的建议是:
如需了解如何定义阻塞时间,请参阅介绍总阻塞时间的文章
如果某个脚本是广告代码或被第三方网站标记为“广告”脚本,则此脚本会被视为与广告相关。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-06-26。
[null,null,["最后更新时间 (UTC):2024-06-26。"],[[["This audit identifies the time users experience delays due to ad scripts blocking the main thread, which negatively impacts loading speed and responsiveness."],["The primary cause of ad-related blocking is loading too many ads simultaneously, so it is recommended to reduce the number or density of ads."],["Optimizing ad loading by lazy loading below-the-fold ads and reducing batch sizes for Single Request Architecture can minimize blocking and enhance user experience."],["Ad-related scripts are identified through ad tags and third-party web classifications, providing insights into specific scripts contributing to blocking."]]],[]]