Skip to content

Commit

Permalink
feat:performance lib
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Jan 10, 2020
1 parent 9769c12 commit f914572
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/performance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ async function performance(url) {
const domReadyTime = domContentLoadedEventEnd - navigationStart;
// 页面加载总耗时
const pageLoadTime = loadEventEnd - navigationStart;
console.log(dnsLookupTime, tcpConnectTime, downloadTime, whiteScreenTime);
console.log('DOM解析耗时', parseDomTime);
console.log('DOM Ready 耗时', domReadyTime);
console.log('页面加载总耗时', pageLoadTime);
Expand Down

0 comments on commit f914572

Please sign in to comment.