浏览器显示页面的几个关键时间点

一  开始渲染阶段的时间点:

      1  TTFB(Time To First Byte)    发起请求到服务器返回数据的时间

         wiki(

Time To First Byte or TTFB is a measurement that is often used as an indication of the responsiveness of a webserver or other network resources.

It is the duration from the virtual user making an HTTP request to the first byte of the page being received by the browser. This time is made up of the socket connection time, the time taken to send the HTTP request, and the time taken to get the first byte of the page. 

)

    2 TTDD (Time To Document Download) 从服务器下载HTML文档的时间

    3 TTHE (Time To Head End)  HTML文档头部解析完成所需要的时间


二 关于DomReady 中的时间点

domReady 对应har 结构中的DomContentLoaded 

 先来看看一个粗略的时间组成公式:

    Time To Dom Ready = TTSR + TTDC + TTST

1 TTSR(Time To Start Render):浏览器开始渲染的时间

2  TTDC (Time To Dom Created)    DOM树创建所消耗时间

3  TTST (Time To Script)    BODY中所有脚本加载和执行的时间


三 关于Page Load 的时间点

1 start Reader

2 Dom Ready

3 Resource Download (简单来说所有的资源加载完毕)


四 可进行交互的时间TTI(Time To Interact)

1 start Reader

2 Core HTML Reader(核心功能相关的HTML渲染完成)

3 Core Javascript Bind (核心功能相关的Javascript 绑定完成)


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值