Last active
August 29, 2015 14:03
-
-
Save jikeytang/f1ba2a061f4369133dcc to your computer and use it in GitHub Desktop.
[ Javascript ] - 20140703-题目1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
用js如何精确的计算出前端页面渲染加载时间? | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```javascript | |
// you code | |
``` | |
2. 粘贴代码时请使用shift+tab,缩进前面的空白。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我记得W3C制定了一个 Web Performance 的API,具体怎么计算的,我已经记不清了
W3C地址是:http://www.w3.org/TR/navigation-timing/
这个计算出来应该还是比较精确的
无意中还发现了别人做的一个页面,与这个API相关的
Github Page地址:http://github.kainy.cn/NavigationTiming/