Open iidear opened 5 years ago
https://github.com/iidear/blog/issues/1#issuecomment-442760107
基本流程:解析 HTML 生成DOM,遇到 script 等待 js 执行,解析 CSS。 匹配 DOM 和 CSS,生成 Layout Tree,Plaint,Composit。
图片出自 how-browser-works. 2011年发表的文章。8102 年了,还总能看到这张图。
输入码点流,输出 Document 对象。
流程图
https://github.com/iidear/blog/issues/1#issuecomment-442760107
图片出自 how-browser-works. 2011年发表的文章。8102 年了,还总能看到这张图。