避免瓶颈请求
概览
此项审核旨在找出阻塞首个广告请求的长时间运行的请求。这些是在发出首个广告请求之前就已启动且已收到响应的请求。减少这些阻塞请求的数量和时长将会缩短第一个广告请求的延迟时间,从而加快广告加载速度。
建议
此项审计的详细信息包含前 5 个阻塞请求(按费用)。这样做的目标是移除这些请求或缩短这些请求的时长,以加快广告加载速度。关于执行此操作的一些提示包括:
- 消除不必要的请求。
- 将非关键请求延迟到广告加载完毕之后。
- 并行(而非串行)发出请求。
- 通过优化后端服务、使用 HTTP/2 等来缩短响应时间。
此项审核结果会显示费用最高的 5 个瓶颈请求。请求费用的计算公式如下:
request duration + (request self-time * 3)
其中,请求自用时间等于时长减去被其他请求阻塞花费的时间。仅考虑自用时间超过 250 毫秒或时长超过 1 秒的请求。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-06-26。
[null,null,["最后更新时间 (UTC):2024-06-26。"],[[["This audit focuses on identifying and mitigating long-running requests that delay the initial ad request, ultimately hindering ad loading speed."],["By reducing or removing these \"blocking requests,\" publishers can significantly improve the latency of their first ad request."],["Optimization strategies include eliminating unnecessary requests, deferring non-critical requests, parallelizing request execution, and enhancing backend service response times."],["The audit highlights the top 5 most impactful blocking requests based on a calculated \"cost\" that factors in request duration and self-time."],["Requests with self-times exceeding 250ms or durations longer than 1s are flagged for potential optimization to improve ad loading performance."]]],[]]