Created
April 17, 2014 06:02
-
-
Save Johnqing/10956503 to your computer and use it in GitHub Desktop.
This file contains 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
查找浏览器缓存 | |
DNS解析、查找该域名对应的IP地址、重定向(301)、发出第二个GET请求 | |
进行HTTP协议会话 | |
客户端发送报头(请求报头) | |
服务器回馈报头(响应报头) | |
html文档开始下载 | |
文档树建立,根据标记请求所需指定MIME类型的文件 | |
文件显示 | |
[ | |
浏览器这边做的工作大致分为以下几步: | |
加载:根据请求的URL进行域名解析,向服务器发起请求,接收文件(HTML、JS、CSS、图象等)。 | |
解析:对加载到的资源(HTML、JS、CSS等)进行语法解析,建议相应的内部数据结构(比如HTML的DOM树,JS的(对象)属性表,CSS的样式规则等等) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment