Newshot

Web 浏览器工程

Translation(model translation, not the source's own text)

网页浏览器无处不在,但它们如何工作?本书通过用几千行 Python 构建一个基础但完整的网页浏览器,从网络到 JavaScript,来解释这一点。

The cover for Web Browser Engineering, from Oxford University Press
The cover for Web Browser Engineering, from Oxford University Press

购买 Web Browser Engineering

可从 Bookshop、B&N 和 Amazon 购买,也可购买韩文译本(Hanbit 出版)和日文译本(O’Reilly 出版)。

The cover for Web Browser Engineering in Korean, from Hanbit
The cover for Web Browser Engineering in Korean, from Hanbit
The cover for Web Browser Engineering in Japanese, from O’Reilly
The cover for Web Browser Engineering in Japanese, from O’Reilly

关注本书的博客、Mastodon 或 Twitter 以获取更新。Github 上有本书的讨论论坛,或者你也可以直接给我们发邮件。

引言

  • 浏览器与 Web
  • Web 的历史

第 1 部分:加载页面

  • 下载网页 URL 和 HTTP 请求
  • 绘制到屏幕 创建窗口并绘制到画布
  • 格式化文本 自动换行和行距

第 2 部分:查看文档

  • 构建 HTML 树 解析并修复 HTML
  • 页面布局 行内和块级布局
  • 应用作者样式 解析并应用 CSS
  • 处理按钮和链接 超链接和浏览器界面

第 3 部分:运行应用

  • 向服务器发送信息 表单提交和 Web 服务器
  • 运行交互式脚本 修改 DOM 并响应事件
  • 保护数据隐私 Cookie 和登录、XSS 和 CSRF

第 4 部分:现代浏览器

  • 添加视觉效果 混合、裁剪和合成
  • 调度任务和线程 事件循环和渲染管线
  • 动画和合成 使用 GPU 实现平滑动画
  • 让内容可访问 键盘输入、缩放和无障碍树
  • 支持嵌入内容 图像、iframe 和脚本
  • 重用先前的计算 失效、编辑和正确性

结论

  • 未涵盖的内容
  • 不断变化的格局

附录

  • 参考书目
  • 关于作者
  • 贡献者
  • 基于本书讲授的课程列表
  • 单页版本

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by Hacker News
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗