https://www.jianshu.com
Chrome DevTools 的 console
不过 lifecycle 里的各种耗时时间挺有意思
是不是忘删 console.log 了 哈哈
Release: production-20190811033856
Environment: production
{
"link": "https://www.jianshu.com/p/4ced94958e13",
"times": {
"alltime": 1158,
"details": {
"redirect": 0,
"dns": 0,
"ttfb": 496,
"static": 495,
"render": 660,
"onload": 1565534859918
},
"lifecycle": {
"_1": {
"key": "redirect",
"desc": "网页重定向的耗时",
"value": 0
},
"_2": {
"key": "cache",
"desc": "检查本地缓存的耗时",
"value": 0
},
"_3": {
"key": "dns",
"desc": "DNS 查询的耗时",
"value": 0
},
"_4": {
"key": "tcp",
"desc": "TCP 连接的耗时",
"value": 0
},
"_5": {
"key": "request",
"desc": "客户端发起请求的耗时",
"value": 493
},
"_6": {
"key": "response",
"desc": "服务端响应的耗时",
"value": 2
},
"_7": {
"key": "render",
"desc": "渲染页面的耗时",
"value": 660
},
"__": 1155
}
},
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36"
}
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.