摘要: const t = performance.timing 网页重定向耗时:t.redirectEnd - t.redirectStart检查本地缓存的耗时: t.domainLookupStart - t.fetchStartDNS查询的耗时: t.domainLookupEnd - t.domai 阅读全文
posted @ 2019-12-17 15:34 雲天望垂墨傾池 阅读(138) 评论(0) 推荐(0) 编辑
摘要: performance.navigation.type: 0:网页通过点击链接、地址栏输入、表单提交、脚本操作等方式加载,相当于常数performance.navigation.TYPE_NAVIGATENEXT。 1:网页通过重新加载按钮或location.reload()方法加载,相当于常数pe 阅读全文
posted @ 2019-12-17 10:32 雲天望垂墨傾池 阅读(68) 评论(0) 推荐(0) 编辑