-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
浏览器渲染 #67
Comments
<html>
<head>
<title>Web page parsing</title>
<script>
var t1 = Date.now();
</script>
</head>
<body>
<div>
<h1>Web page parsing</h1>
</div>
<script>
var t2 = Date.now();
console.log('first page', t2 - t1);
</script>
<link rel="stylesheet" href="http://wxx.v.baidu.com:8080/a.css">
<script src='a.js'></script>
<script>
var t3 = Date.now();
console.log('load/exec css/js', t3 - t2);
</script>
<div>
<p>This is an example Web page.</p>
</div>
</body>
</html> |
网页性能&体验优化策略
|
window.performance.mark(startTag); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Chrome测试结论
参考
浏览器工作原理分析与首屏加载
css加载会造成阻塞吗?
原来 CSS 与 JS 是这样阻塞 DOM 解析和渲染的
The text was updated successfully, but these errors were encountered: