Chrome开发者工具网络选项卡优先级列

时间:2016-11-11 09:58:33

标签: google-chrome google-chrome-devtools web-performance

Chrome开发者工具网络标签记录了网页资源加载。

我正在尝试了解有关优先级列的以下内容:

  1. 决定如何为资产分配优先级的因素?

  2. 可以通过代码更改或分配优先级吗?

  3. 我查看了以下文档,但未找到对优先级列的任何引用。

    https://developers.google.com/web/tools/chrome-devtools/network-performance/resource-loading

2 个答案:

答案 0 :(得分:3)

Critical Request Chains文章提到非{SPDY / HTTP / 2连接的Chrome Resource Priorities and Scheduling design-doc。这些是在浏览器核心中定义的,没有用户级API来直接控制它AFAIK。

Chrome 45及更早版本:

enter image description here

Chrome 46及更新的正在进行的工作:

enter image description here

答案 1 :(得分:1)

优先级维度已添加到新的HTTP / 2协议中。这是浏览器向服务器提供的提示,服务器可能会或可能不会遵循。您作为webdev无法更改浏览器设置的优先级。

更多信息:https://speakerdeck.com/summerwind/2-prioritization