PerformanceTiming.responseStart是指向HTML还是headers开始?
Is PerformanceTiming.responseStart points to HTML or headers start?
我有一个关于 PerformanceTiming.responseStart 的问题。
是headers第一个字节的时间还是HTML第一个字节的时间?在某些项目中,这个时间可能会非常不同。例如当使用渐进式页面呈现时。
[...] 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 之前。这是数据在网络套接字上并首次被读取的时刻。
这是一个关于它的小动画和解释页面: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.
在您的浏览器中的这个时间点 Network-Tool F12:
我有一个关于 PerformanceTiming.responseStart 的问题。
是headers第一个字节的时间还是HTML第一个字节的时间?在某些项目中,这个时间可能会非常不同。例如当使用渐进式页面呈现时。
[...] 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 之前。这是数据在网络套接字上并首次被读取的时刻。
这是一个关于它的小动画和解释页面: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.
在您的浏览器中的这个时间点 Network-Tool F12: