javascript – PerformanceTiming.responseStart是指向HTML还是标题开始?

我有一个关于 PerformanceTiming.responseStart的问题.

是时候将标题的第一个字节转换为HTML的第一个字节了吗?在某些项目中,这个时间可能非常不同. E. g.使用渐进式页面渲染时.

解决方法

[…] must return the time immediately after the user agent receives the first byte of the response from the server

http://www.w3.org/TR/2012/REC-navigation-timing-20121217/#dom-performancetiming-responsestart

响应是包括HTTP-Header在内的所有内容,甚至在HTML-Head之前.这是第一次在网络套接字上读取数据的时刻.

这是一个关于它的neet小动画和解释页面https://varvy.com/performance/responsestart.html

When a resource is retrieved via the network (rather than the application cache) responseStart represents part of the HTTP request / response timeline.

在浏览器网络工具F12中的这个时间点:

相关文章

前言 做过web项目开发的人对layer弹层组件肯定不陌生,作为l...
前言 前端表单校验是过滤无效数据、假数据、有毒数据的第一步...
前言 图片上传是web项目常见的需求,我基于之前的博客的代码...
前言 导出Excel文件这个功能,通常都是在后端实现返回前端一...
前言 众所周知,js是单线程的,从上往下,从左往右依次执行,...
前言 项目开发中,我们可能会碰到这样的需求:select标签,禁...