Chrome开发者峰会2021 | 主题演讲:Chrome的新功能
本页标题、字幕、摘要和阅读笔记为已保存的 AI 译文,可能有误。时间戳与来源一致,可展开查看原始字幕,并对照原视频核对。
Chrome Dev Summit 2021 主题演讲:Compat 2021、隐私沙盒与 User-Agent 缩减、Web 版 Photoshop、Core Web Vitals 以及容器查询。
文字记录来源:YouTube上创作者上传的字幕。Vidleaf添加了AI标点;保留原始措辞和时间戳锚点。原始文字记录可在下方获取。
AI生成的摘要
这场 Chrome Dev Summit 2021 会议回顾了 Chrome 在打造快速、安全且强大的 Web 方面所做的工作,其方向由开发者关于跨浏览器兼容性的反馈所引导。Compat 2021 使用 Web Platform Tests 对 Chrome、Edge、Firefox 和 Safari 的开发版本进行兼容性评分,自三月以来评分已显著提升,但相关工作仍在继续。在隐私方面,隐私沙盒用专门构建的 API 取代第三方 Cookie 等通用机制;FLEDGE 吸引了超过 100 个组织参与 W3C 会议,并有超过 200 个在线讨论帖,其初始版本正在 Chrome 中通过标志开始测试。User-Agent Client Hints 已准备好规模化推广,Chrome 计划从 2022 年四月起降低 User-Agent 字符串的粒度,并提供截至 2023 年三月的退出选项。本次会议还综述了创意、通信和社交产品中的 Web 能力与 PWA,并涵盖性能测量、新的用户体验指标、RenderingNG、CSS 更新、accent-color 和深色模式,其中包括一项实验室研究:在单台 Pixel 6 设备上,深色主题的功耗降低了 11%。
根据文字记录生成。请对照原始视频检查链接段落。
带时间戳的章节摘要
Chrome Dev Summit 2021:Web 演进与跨浏览器兼容性
- [0:24] Ben 欢迎观众参加线上 Chrome Dev Summit 2021,并介绍团队过去一年的亮点。
- [0:39] Chrome 的 2008 愿景是:Web 能够跨设备提供快速、安全且强大的应用,并可通过链接即时访问。
- [0:53] 疫情期间,随着人们日益依赖 Web 和浏览器处理日常事务,这一愿景变得更加重要。
- [1:07] Web 之所以能够持续成功,是因为它随着技术进步和期望变化而不断演进。
- [1:19] Google 致力于透明与开放,与开发者、用户以及生态系统的其他成员协作。
- [1:43] 通过问卷调查和个别交流获得的开发者反馈始终强调跨浏览器兼容性的重要性。
- [2:04] 过去的举措包括 GitHub 上的 Web Platform Test 项目,以及为 Mozilla 开发者网络文档做出贡献的 Open Web Docs 计划。
- [2:25] 今年新增了 Compat 2021,这是一项跨浏览器合作,专注于改善五个关键 CSS 相关领域的兼容性。
- [2:41] Compat 2021 团队使用 Web Platform Test 项目,对 Chrome、Edge、Firefox 和 Safari 最新开发版本的兼容性评分进行量化。
- [2:58] 自三月以来已取得显著改善,但工作尚未完成,这些及其他关键领域的推进仍将继续。
隐私沙盒与第三方 Cookie 淘汰
- [3:09] Web 正在隐私方面演进,力求限制第三方跟踪,同时为全球 Web 生态系统保留关键能力。
- [3:30] 人们应当掌控自己的信息,包括在线活动,而隐私顾虑正日益驱动人们的在线选择。
- [3:46] 世界各地的法规正在迅速提高隐私要求,但开发者难以满足这些要求,因为许多能力依赖第三方 Cookie 和并非以隐私为设计初衷的跨站跟踪机制。
- [4:12] 隐私沙盒与 Web 社区及行业利益相关者共同开发新的隐私保护技术,包括为广告、欺诈检测、身份识别和设备定制内容专门构建的 API。
- [4:50] 专门构建的 API 取代第三方 Cookie 等通用技术,让浏览器能够施加适当的隐私保护,并针对每种使用场景为人们提供更有用的控制选项。
- [5:26] 在新 API 就位后,开发者将有一段时间来采用它们,之后 Chrome 才会安全地淘汰第三方 Cookie,同时继续努力缓解其他跟踪方式,以免跨站跟踪转向隐蔽手段。
- [5:48] 进展在 privacysandbox.com 上分享,该网站说明了愿景、目标、概念以及每月更新的时间表;技术细节和实施指南则在 developer.chrome.com 的隐私沙盒板块提供。
- [7:06] 第一个开发阶段是讨论,任何人都可以提出建议并发表意见;网上已有数十项隐私保护提案,W3C 小组会举办实时讨论。
- [7:45] FLEDGE 是一项无需跨站跟踪的兴趣导向广告提案,它由之前的两项提案演变而来,并吸纳了隐私倡导者和行业利益相关者的意见,吸引了超过 100 个组织参与 W3C 会议,并有超过 200 个在线讨论帖。
- [8:18] FLEDGE 初始版本的开发者测试正在 Chrome 中通过标志开始,并非所有提案都会经历如此密集的孵化期。
测试隐私沙盒 API 与 UA-CH 发布
- [8:41] 若干提案已准备好供开发者测试,预计 2022 会有更多提案,且很可能出现迭代式的讨论与测试周期。
- [9:01] Chrome 的测试通常从通过标志启用的功能开始,供开发者在本地测试,这些代码往往较新,因此出现问题在意料之中。
- [9:15] Origin Trials 在有限时间内面向有限数量的 Chrome 用户运行,并且是公开的,所有注册选择加入的开发者均可参与。
- [9:36] 这一阶段的成功取决于开发者是否进行动手测试,并愿意分享他们学到的东西。
- [9:45] Yahoo! Japan 发布了一份关于其 Attribution Reporting API 测试的详细分析,强调需要一种更好的方式来传递转化报告,而这一功能现已被添加。
- [10:10] 在 FLoC 源试用期间,CafeMedia 等公司发布了他们的分析和见解,以便其他人可以看到他们学到的东西。
- [10:36] Criteo 举办了一场比赛,有超过 150 支团队测试机器学习模型,以评估噪声插入和聚合等差分隐私概念可能如何影响广告效果。
- [11:19] User-Agent Client Hints 今年早些时候在 Chrome 中推出,现在已准备好作为 Privacy Sandbox 工作流的一部分进行扩展,以减少浏览器指纹识别等隐蔽跟踪。
- [11:54] Chrome 计划从2022年四月起降低其 User-Agent 字符串中信息的粒度,要求过渡到 User-Agent Client Hints。
- [12:59] 源试验让开发者可以提前选择加入缩减后的 UA 字符串,而那些需要更多时间的人可以选择在2023年三月之前继续按原样使用 User-Agent 字符串。
Web 健康与能力
Web 的新能力与虚拟化转变
- [14:20] Web 已经获得了强大的新集成,让 Web 应用能够做更多事情。
- [14:25] Fugu 项目与生态系统合作,解锁了安全文件系统访问和操作系统启动器集成等能力。
- [14:40] 开发者以引人注目的方式拥抱了这些新的 Web 能力。
- [14:59] 许多人待在家里,而在过去几年里,家已经转变为一个由技术驱动的中心。
- [15:18] 向虚拟化的转变对我们的生活和工作的方式产生了深远影响。
- [15:24] 视频和创作领域经历了规范上的强大转变,实时编辑、分享和协作完全虚拟化。
- [15:51] 团队一直致力于解锁新的 Web 能力,以升级现有体验或构建前沿事物。
- [16:01] 世界各地的合作伙伴正在构建能够实现创造力、表达、沟通和娱乐的 Web 体验,Kapwing 就是一个例子。
Kapwing Web 视频编辑器概览
- [16:17] Kapwing 是一款协作式视频编辑器,拥有超过三百万月活跃用户,每天处理 100,000 个视频。
- [16:32] Kapwing 是一款基于 Web 的协作式编辑器,主要面向休闲创作者,例如游戏主播、音乐人、YouTube 创作者和梗图制作者。
- [16:41] 它也是企业主的热门资源,他们需要一种简单的方式来制作自己的社交内容,例如 Facebook 和 Instagram 广告。
- [16:48] 用户通常通过搜索特定任务(如裁剪、添加音乐或调整视频尺寸)来发现 Kapwing,并且无需从应用商店下载,一键即可立即完成。
- [17:09] Kapwing 在付费获客上花费了 0 美元,演讲者称这证明了该策略效果非常好。
- [17:15] 首次点击后,用户可以探索免费模板、添加免费库存视频、插入字幕和转录视频,以及上传背景音乐。
- [17:27] 用户可以点击分享并发送链接,无论使用何种设备或操作系统,都能与朋友和同事协作。
- [17:55] 高性能编辑要求内容驻留在客户端,尽可能避免网络,使用 IndexedDB、Web Sockets、Web Audio API、Media Recorder API 和 Web Workers。
Kapwing 的 PWA 和 Web API 计划
- [18:31] 从视频中移除背景是在不影响主线程性能的情况下完成的。
- [18:35] Kapwing 是作为 PWA 构建的,因此一旦用户通过搜索找到它,它就可以安装,并且很容易从桌面重新启动。
- [18:45] 未来,Kapwing 很高兴使用 Web Codecs 来加速帧绘制。
- [18:50] 他们计划使用 WebGL 来实现更复杂的动画。
- [18:54] 他们计划使用 Media Source Extensions 来实现片段之间更无缝的过渡。
- [18:58] 这些 API 都不是全新的,但结合起来,它们让用户更容易协作并快速将想法变为现实。
- [19:09] 对 Kapwing 来说,Web 提供了一种精简的方式来触达和吸引更多用户。
Zoom 的 PWA 和 Web 视频会议
- [19:21] 演讲者推荐尝试 Kapwing,称其非常易于使用。
- [19:25] 本节转向视频会议,这是一个熟悉的 Web 功能。
- [19:36] 在 2020 年,Zoom 看到大量用户使用其 Web 应用进行虚拟欢乐时光、小组研讨会和在线网络研讨会。
- [19:48] Zoom 利用这个机会通过 PWA 改善其 Web 体验,并提供与其原生应用更相当的体验。
- [19:56] 该 PWA 还为 Zoom 数百万 Chrome OS 用户提供了一个强大的替代方案,以取代他们的 Chrome 应用。
- [20:04] Zoom 使用新的 WebCodecs API 进行视频编码和解码,这提高了性能,并通过快速、清晰的视频增强了用户体验。
- [20:16] 链接捕获确保在电子邮件中点击 Zoom 会议链接时,会在 PWA 中打开,而不是在浏览器标签页中打开。
- [20:25] 对于 Chrome OS 用户,托管配置允许企业轻松地在整个员工队伍中安装该 PWA。
- [20:34] 推出 PWA 一个月后,Zoom 看到 16.9 百万新用户加入网络会议,同比增长七百万。
- [20:44] 随着 WebRTC 和 Fugu API 的发展,以前不可能实现的音频和视频通话体验现在已成为可能。
FaceTime Web 链接和 Google Meet PWA
YouTube Premium PWA 离线功能
- [21:27] 速度和视频/音频质量已大幅提升。
- [21:40] YouTube Premium 是一项付费订阅服务,可实现无广告观看、后台播放和离线下载。
- [21:50] 笔记本电脑和混合设备上的离线观看是 YouTube Premium 用户最期待的功能之一。
- [21:58] 为了实现这一点,YouTube 添加了将其网站转变为可安装 PWA 所需的一切。
- [22:07] 对于离线体验,他们结合使用了 service workers、缓存存储和 IndexedDB。
- [22:15] 他们使用 Web Share API,以便用户可以与设备上其他已安装的应用分享视频链接。
- [22:23] 他们使用导航预加载来提高 service worker 性能。
- [22:27] 他们正在进行一项实验,使 YouTube Premium 用户能够在 Chrome、Edge 或 Opera 上下载视频以供离线观看。
TikTok 的 Web 策略与 PWA 收益
桌面 Web 创新与 Adobe 合作
Adobe Creative Cloud 登陆 Web
- [23:59] 许多旗舰 Adobe Creative Cloud 应用即将登陆 Web。
- [24:15] Adobe 相信这些合作通过为用户创造体验的新机会,使所有开发者受益。
- [24:57] 用户现在可以将 PSD 存储在云中,以便在所有设备上处理单个文档。
- [25:05] 用户可以创建和共享云 PSD 的链接,与协作者共同编辑,并在 Web 上共享以供审阅和评论。
- [25:41] 经过数十年的桌面端专用使用以及后来的 iPad 版本,Photoshop 现在通过公开测试版可在 Web 浏览器中访问。
- [25:56] Web 版 Photoshop 测试版允许访问审阅和评论工作流,并让用户测试一些试点编辑功能。
- [26:29] Web Assembly 将 Adobe 代码库的大部分带到了 Web,而零成本异常处理避免了性能损失。
- [26:43] Canvas 2D 现在支持色彩管理,并支持 sRGB 和 P3 色彩空间,以实现高保真工作。
- [26:56] Storage Foundation API 确保用户无论 PSD 的大小或图层数量如何都能进行处理。
- [27:18] Adobe 还宣布了 Creative Cloud Spaces 和 Creative Cloud Canvas,两者均处于私人测试阶段。
Web Vitals 与 Core Web Vitals
- [28:07] 演讲者感谢 Pam、Josh 和 Aanchal 介绍了亮点。
- [28:11] Web 的进步通常以迭代的方式逐年逐步实现。
- [28:25] 随着 Web 获得新功能和新能力,帮助开发者从现代 Web 平台中获得最佳结果是一个重要主题。
- [28:36] Web Vitals 计划是帮助开发者的一种方式,也是对什么造就卓越 Web 体验进行大量研究的成果。
- [28:45] 通过 Core Web Vitals,检查了导致高质量用户体验的许多因素,并确定了三个具有重大影响的可量化指标。
- [28:56] 这三个指标是:用户多快能看到网站最重要的内容、用户多快能开始与网站交互,以及网站布局随时间的稳定性。
- [29:09] 研究发现,优化这些指标的网站始终更成功。
Core Web Vitals 进展与 Aurora 计划
- [29:21] 构建一个出色的网站需要从真实用户的角度理解其性能。
- [29:27] Web Vitals 计划为开发者和网站所有者提供指标、工具和指导,以为每位用户提供出色的体验。
- [29:38] Core Web Vitals 是一组三项指标,涵盖加载性能、加载期间的输入响应性以及内容的视觉稳定性。
- [30:04] 与一年前相比,Chrome 中现在有 20% 更多的页面访问完全满足推荐的 Core Web Vitals 阈值。
- [30:11] 目前 Chrome 中满足这些阈值的页面访问总百分比为 60%。
- [30:33] 新的 Core Web Vitals 技术报告显示,许多平台大幅改善,有些平台同比提升超过 200% 年,而 Duda 和 Jimdo 等领先者以良好分数超越了 50% 的 Origins。
- [31:06] Aurora 计划与包括 Next.js 和 Angular 在内的流行 JavaScript 框架合作;在不到一年的时间里,拥有良好 Core Web Vitals 分数的移动端 Next.js 和 Angular Origins 分别增加了 91% 和 111%。
- [31:35] 对普通开发者来说,针对核心网页指标进行优化仍然可能具有挑战性。
性能工具更新:PageSpeed、Lighthouse、Recorder
- [31:46] PageSpeed Insights 的用户界面已彻底改版,使流程更加简便。
- [31:53] PageSpeed Insights 显示来自 Chrome UX 报告的真实用户数据,并运行 Lighthouse 报告,基于模拟实验室负载提供建议。
- [32:05] 新界面更清晰地标明哪些是来自真实用户的现场数据,哪些是来自 Lighthouse 报告的实验室数据。
- [32:13] 核心网页指标分数应在真实用户现场数据中检查,而 Lighthouse 报告是获取可操作改进建议的良好起点。
- [32:25] 工具此前存在一个盲点:它仅在页面加载期间进行评估,而不评估滚动或点击等用户流程。
- [32:44] 一个结账流程示例展示了用户跨页面执行许多操作,而此前只能逐页进行测量。
- [33:09] Lighthouse 现在支持用户流程,为页面导航、时间段内的用户交互以及快照提供单独的报告。
- [33:38] DevTools 中新的 Recorder 面板可记录整个用户旅程,显示导航和点击等操作,并可导出为 Puppeteer 脚本、重放并测量性能跟踪。
- [34:16] Recorder 面板目前处于预览阶段,团队正在积极开发中。
新的用户体验指标和工具
- [34:44] 出色的用户体验涉及的不仅仅是现有的三个领域,团队正在填补当前指标尚未覆盖的空白。
- [34:55] 引入了两个新的实验性指标,以改进网络上用户体验的衡量方式,并征求反馈。
- [35:06] 第一个指标衡量整体输入响应性,不仅限于首次输入,而是涵盖从进入网站到离开的每一次用户输入。
- [35:22] 事件计时 API 得到改进,以更好地监控完整的事件生命周期,并处理触发多个事件的复杂输入。
- [35:34] 第二个指标衡量滚动和动画的流畅度,以了解页面卡顿或冻结的频率和严重程度。
- [35:49] 这两个指标仍在进行中,相关文章解释了当前思路;可通过电子邮件发送反馈。
- [36:20] PageSpeed Insights 显示核心网页指标分数,还有其他工具可用于持续监控和优化网站性能。
核心网页指标与高质量网络体验
RenderingNG 与 Web 用户体验演进
新的响应式与容器查询
- [37:48] 本次演讲涵盖 UI 样式和 DevTools 的即将更新。
- [37:58] 响应式设计不再仅仅关乎在桌面和移动设备上看起来美观。
- [38:04] 开发者现在可以在组件驱动的架构中,基于个性化偏好创建定制化的用户体验。
- [38:14] “新的响应式”包括响应用户偏好(如深色模式和 prefers-reduced-motion)、新的外形规格(如可折叠设备),以及通过容器查询响应其他组件。
- [38:36] 容器查询与 CSS 工作组共同制定了规范,并通过 Chrome 渲染引擎的近期变更得以实现。
- [38:44] 容器查询规范允许你访问父元素的宽度来为其子元素设置样式,查询可以嵌套和命名。
- [39:02] 一个演示展示了一个响应式的“加入购物车”按钮,通过查询产品卡片容器重新设置样式,将其从居中对齐变为左对齐。
- [39:17] 此前若不使用会显著拖慢页面的繁重脚本,这是不可能实现的。
- [39:23] 正在与开源社区一起构建容器查询的 polyfill。
- [39:33] 组件在本地拥有自己的响应式样式,而不是依赖全局视口。
- [39:48] 容器查询可在 Chrome Canary 中通过标志进行测试。
- [39:56] 正在提供 DevTools 对容器查询的调试和样式支持,显示容器并高亮已应用的样式。
新的 Grid 和 Flexbox DevTools
UI 模式与响应式设计课程
- [40:53] 提供了一组现成的 UI 模式,可用于 Web 项目。
- [41:00] 布局模式从大型整页跨页和卡片集,到像卡片本身这样较小的布局,范围广泛。
- [41:10] 所有模式都使用 CSS Grid、Flexbox 或容器查询,以展示这些工具可以多么快速地掌握。
- [41:20] Google 与 Clearleft 的 Jeremy Keith 合作,在 web.dev 上推出了免费课程“Learn Responsive Design”。
- [41:31] 该课程涵盖主题化、艺术指导、用于国际化的逻辑属性以及偏好查询。
- [41:39] 课程的前几个模块今天在 web.dev/learn/design 上线,更多模块将在接下来的几周内推出。
- [41:46] “Learn CSS”正在更新,新增六个模块,涵盖列表、背景、过渡、文本与排版、媒体查询等。
- [42:10] 团队正在开发新的 CSS 功能,包括作用域样式和级联层,此外还有容器查询。
新的 CSS API 与功能
- [42:26] Scroll Timeline 是一个可供探索的新 API。
- [42:32] 以前 CSS 动画是基于时间的;Scroll Timeline 则允许你设置基于滚动的偏移量和时间。
- [42:44] 这使元素可以在你向下或横向滚动页面时播放动画。
- [42:50] 可以在 Canary 中使用实验性 Web 平台功能标志来探索 Scroll Timeline。
- [42:56] CSS 嵌套最近达到了首个公开工作草案阶段。
- [43:02] 嵌套是一种语法糖,将广受欢迎的 CSS 预处理器功能带到 Web 上,以提供更简洁的开发者体验。
- [43:15] 他们建议嵌套不要超过三层,以确保最佳性能。
- [43:20] 用于排版的 size-adjust 属性有助于通过将默认字体与 Web 字体匹配,防止核心 Web 指标中的累积布局偏移。
- [43:35] accent-color 已在 Chromium 和 Firefox 稳定版中落地,作为用于表单控件的一行 CSS 功能。
深色模式的优势与实现
- [43:56] 深色模式是一项广受请求的热门功能,其价值在于它的影响超越了用户界面。
- [44:05] 在 OLED 设备上,深色主题已显示出相比浅色主题可测量的电池续航节省。
- [44:11] 在一项使用单台 Pixel 6 设备、亮度为 60% 的实验室研究中,对于 OLED 屏幕,深色主题比浅色主题少用 11% 的电量。
- [44:25] 当 Twitter 发布其新渐进式 Web 应用的第一个预览版时,用户询问深色模式在哪里,而在一项调查中,用户提到了深色模式、表情符号选择器以及更多深色模式。
- [44:45] 要创建深色主题,请使用 CSS 自定义属性和 prefers-color-scheme 媒体特性(所有常青浏览器均支持),根据用户偏好切换主题颜色。
- [45:04] Material Design 提供了构建深色主题的指导,包括用明度而非阴影来调整深度,以及调整色彩鲜艳度以减少视觉振动。
- [45:19] Chrome 正在开发一项由机器学习辅助的自动深色算法功能,并提供细粒度的退出选项,目前仍处于早期开发阶段。
- [45:36] 要尝试它,请在 Chrome Canary 中打开 DevTools 的 Rendering 面板并启用 Auto Dark Mode Emulation。
结语与参与方式
- [45:50] 尽管过去一年 Web 发生了许多变化,他们对平台的未来比以往任何时候都更加乐观。
- [46:01] 在未来几年,他们将继续推动让 Web 更加私密和强大,并为开发者提供更好的工具和指导,以打造高质量体验。
- [46:17] Web 之所以特别,部分原因在于它是一个开放、去中心化的生态系统,为任何人提供了许多帮助塑造其未来的方式。
- [46:28] 邀请人们通过 Chromium 开源项目、W3C 及其他标准组织参与,或关注 web.dev 和 @ChromiumDev。
- [46:42] 作为虚拟 CDS 2021 的一部分,在接下来的几周里,他们将举办工作坊、小组学习休息室和一对一办公时间,以直接与 Chrome 团队互动。
- [47:00] 他感谢观众,并希望在未来的 Chrome Dev Summit 活动中与他们当面相见。
[0:24] 大家好,欢迎来到非常虚拟的 Chrome Dev Summit 2021。我是 Ben,在接下来的几分钟里,我和我的同事,以及几位嘉宾,将分享我们过去一年为改进 Web 所做工作的一些亮点。在 2008,Chrome 发布了一个愿景:Web 可以不仅仅是富文档,它还可以在各类设备上实现快速、安全且强大的应用,只需点击一个链接即可即时使用。在疫情期间,这一 Web 愿景变得比以往任何时候都更加相关,因为世界各地的人们意识到 Web 平台已经变得多么强大,并越来越多地依赖 Web 和他们的浏览器来完成日常事务。
[1:07] 而 Web 之所以能够持续成功,仅仅是因为它多年来不断演进,随着技术进步和人们期望的转变而适应变化。当我们在 Google 帮助推动 Web 演进时,我们力求在所有工作中保持透明和开放,与开发者、用户以及生态系统的其他部分紧密合作。现在,这个 Web 演进的主题是本视频的核心主题,我们将重点介绍一些代表 Web 持续进步的例子。
[1:43] 这些主题中最重要的一个来自我们持续从网页开发者那里收到的反馈,无论是通过调查还是个别对话,而这个主题就是跨浏览器兼容性的重要性。当然,这个主题并不新鲜,多年来,Chrome 团队与其他各方一起参与了各种倡议来提供帮助。最近的例子包括 Web Platform Test Project,这是一个针对新网页平台功能的全面跨浏览器测试套件,托管在 GitHub 上,以及 Open Web Docs 倡议,它汇集了一个大型联盟,共同为托管在 Mozilla 开发者网络上的网页平台文档做出贡献。
[2:25] 今年,我们在列表中添加了一项新倡议,一项名为 Compat 2021 的跨浏览器努力,专注于改善网页五个关键领域的兼容性,令人震惊的是,所有这些都与 CSS 相关。为了衡量我们的进展,Compat 2021 团队能够利用前述的 Web Platform Test 项目来量化这些领域在 Chrome、Edge、Firefox 和 Safari 最新开发版本中的兼容性得分。
[2:58] 现在,虽然我们还没有完成,但自三月以来我们已经看到了显著的改进,我们将继续推动使网页在这些和其他关键领域更加兼容。网页正在演变的另一个领域是隐私,因为我们寻求限制第三方跟踪实践,同时保留能够实现充满活力的全球网页生态系统的重要和关键能力。为了告诉我们更多,我想介绍我的同事 Barb。谢谢你,Ben。
[3:30] 我们相信让人们控制自己的信息,包括他们的在线活动,是很重要的。大多数用户也认为这很重要,隐私担忧日益驱动人们在线行为的选择。我们还看到世界各地的法规迅速提高了隐私要求。然而,开发者很难满足日益增长的隐私期望,因为许多能力依赖于第三方 cookie 和其他跨站点跟踪机制,而这些机制在设计时并未考虑隐私。
[4:07] 我们需要为现代、以隐私为重点的网页提供新技术,这就是 Privacy Sandbox 的意义所在。我们正在与网页社区和行业利益相关者合作,开发新的隐私保护技术,以支持一个健康、可持续的生态系统。这包括支持广告的专门构建的 API,广告是生态系统的重要组成部分,为网页的大部分内容提供资金,以及现代网站所需的许多其他能力,如欺诈检测、身份或根据用户设备定制的内容。
[4:46] 现在,让我们花点时间澄清我们所说的专门构建的 API 是什么意思。我刚才提到的许多用例从未真正构建到网页平台中,而是使用通用技术(如第三方 cookie)分层在其上。浏览器无法判断你使用第三方 cookie 是为了有帮助的事情,比如提供定制体验或保持用户登录,还是为了跨站点跟踪。通过为每个特定用例设计 API,我们可以确保适当的隐私保护,给人们更有用的控制,并且理想情况下,使每个 API 随着时间的推移在其功能上变得更好。
[5:26] 一旦这些新 API 到位,我们将确保开发者有时间采用它们,以便我们能够安全地逐步淘汰 Chrome 中对第三方 cookie 的支持,同时继续我们的工作以减轻其他类型的跟踪,这样跨站点跟踪就不会简单地从第三方 cookie 转移到隐蔽方法。为了使这个复杂的项目更容易跟进,我们在两个地方分享进展。privacysandbox.com 解释了这一倡议背后的愿景、目标和概念。
[5:57] 它还包括一个我们每月更新的高层时间表。时间表链接到我们正在测试和发布的每项技术,并制定了在 Chrome 中逐步淘汰第三方 cookie 的阶段计划。第二个资源是 developer.chrome.com 上的 Privacy Sandbox 部分。在这里,你会找到更多技术细节和实施指导,包括一个包含开发者最新更新的博客。我们刚刚添加了一篇文章,其中包含本次会议的所有链接和更新。
[6:29] 现在,我们在这个项目中大量讨论了协作的重要性,我想向你们展示在开发的每个阶段那是什么样子。我会提到一些 API 作为例子,但更广泛的想法是说明生态系统参与如何塑造这项工作。这个过程对网页开发社区的许多人来说会很熟悉,但 Privacy Sandbox 为这个过程带来了许多新来者,包括将使用这些专门构建的 API 并且其专业知识在其开发中至关重要的行业利益相关者。
[7:06] 过程的第一阶段是讨论,任何人都可以提出并权衡新技术的想法。在过去几年中,Chrome 和其他方提出了数十个隐私保护提案。它们都在线,所以你可以阅读它们,提出问题,提供改进的想法,并看看别人在说什么。要找到所有提议的解决方案一起讨论和辩论的实时对话,有许多 W3C 小组你可以加入或监控,取决于你感兴趣的用例类型。
[7:40] 这里有一个例子可以说明这个讨论阶段可能会变得多么复杂。FLEDGE 是一项旨在支持基于兴趣的广告而无需跨站跟踪的提案。在隐私倡导者和许多行业利益相关者的宝贵意见下,FLEDGE 已从之前的两项提案演变而来,有超过 100 个组织加入 W3C 会议帮助完善当前版本,并有超过 200 个在线讨论线程。在同一解决方案领域还有超过六个其他提案。
[8:12] 通过持续的孵化,我们希望能在前进道路上达成共识,同时,我们正在 Chrome 中通过标志为 FLEDGE 的初始版本启动开发者测试,以便开发者可以上手使用。并非所有这些提案都会经历如此密集的孵化期。有些会进展得快得多,但这里正在发生大量的创新。这些是新想法,可能需要大量工作才能做好。下一阶段是测试。今天已经有少数提案准备好进行开发者测试,随着我们进入 2022,你可以期待更多。
[8:49] 不要惊讶于看到一些讨论和测试的迭代周期。测试之所以重要,正是因为它会暴露可能需要更多工作的问题或差距。Chrome 中的测试通常从开发者本地测试的标志后面的功能开始。这意味着你需要在浏览器中打开它才能尝试。这段代码通常非常新,所以你可以预期会发现一些问题。然后是源试用,每次运行时间有限,且仅限有限数量的 Chrome 用户。
[9:21] 源试用是公开的,对所有开发者开放。你只需注册即可选择加入你的网站或服务。这时我们会从开发者那里获得关于哪些有效、哪些无效以及差距在哪里的可操作反馈。这一阶段的成功不仅取决于开发者进行动手测试,还取决于他们愿意分享所学到的内容。例如,雅虎日本最近发布了一份关于其归因报告 API 测试的详细分析,强调了需要改进的领域,比如需要更好的方式来传递转化报告,这一点现在已经添加。
[9:59] 这些就是开发者一旦上手 API 就会出现的那类问题。我们也希望看到公司谈论他们的测试方法以及他们期望如何使用 API。在 FLoC 第一版的源试用期间——FLoC 是一项支持基于兴趣的广告和内容的提案——我们很高兴看到像 CafeMedia 这样的公司发布他们的分析和见解,以便其他人可以看到他们学到了什么。而且 Chrome 测试并不是探索新技术如何运作的唯一方式。
[10:30] 一些公司还基于隐私沙盒概念构建模拟。广告平台 Criteo 最近举办了一场比赛,有超过 150 支团队测试不同的机器学习模型,以评估差分隐私概念(如噪声插入和聚合)可能如何影响广告性能。检查这些概念是有帮助的,因为它们构成了几个隐私沙盒 API 的基础。我们真心感谢那些投入时间测试这些新技术的公司,以及他们愿意公开分享他们的观点和所学。
[11:09] 现在,一旦 API 经过测试并准备好在 Chrome 中普遍使用,我们将宣布发布并确保公共文档准备好大规模采用。用户代理客户端提示(UA-CH)今年早些时候在 Chrome 中推出,现在已准备好扩展。它是隐私沙盒工作流的一部分,旨在减少隐蔽跟踪,例如浏览器指纹识别。但首先,让我们回顾一下它所取代的旧机制。与 cookie 一样,用户代理字符串是一项早期的网络功能。
[11:43] 默认情况下,它提供了大量关于用户浏览器和设备的信息,使其成为易于获取的指纹识别面。它的格式也可能令人头疼,难以解析。我们最近宣布了计划,从2022年四月起降低 Chrome 的 User-Agent 字符串中可用信息的粒度。要在未来获取这些信息,你需要过渡到 User-Agent Client Hints。它默认会给你一些信息,这可能涵盖你的大多数用例,并可按请求以直截了当的格式提供更详细的信息。
[12:18] 我们很高兴为开发者做出了这一符合人体工程学的改进,同时将大部分 User-Agent 信息从默认可用模式转变为按请求模式。这样,你可以只请求你需要的信息,这在今天是良好实践,也是我们希望为未来设定的模式。那么让我们回到我刚才展示的时间线。UA 字符串的逐步缩减从2022年四月开始。替代解决方案 User-Agent Client Hints 已经推出,并自三月起准备好进行规模化采用。
[12:54] 所以你现在就可以开始测试并迁移到它。为帮助做到这一点,有一个源试验可以提前选择加入缩减后的 UA 字符串,以便你可以看到未来状态会是什么样子。如果事实证明你需要更多时间,你将能够选择在2023年三月之前继续按原样使用 User-Agent 字符串。该计划的细节都在网上,虽然规模化采用阶段对于其他 API 可能看起来不完全一样,但你可以期待整体方法的一致性。
[13:31] 我们将继续解释正在发生的事情,提供尽可能多的可见性,鼓励您的参与并听取您的意见。我们感谢对这个复杂且至关重要的项目的所有贡献,因为我们寻求创建具有广泛实用性和强大用户隐私保护的持久网络功能。为了把基础打好,这些努力是值得的。Ben,我将把时间交还给你。谢谢,Barb。
[14:02] 隐私沙盒是我们所见过的为发展网络而做出的最大努力之一。我们相信,帮助确保网络在未来几十年持续健康和成功是至关重要的。我们将强调的下一个主题是网络能力。在过去几年中,网络获得了许多强大的新集成,使网络应用能够做更多事情。我们通过 Fugu 项目深度参与其中,与生态系统中的其他人合作,解锁诸如安全文件系统访问和与操作系统启动器的丰富集成等功能。
[14:37] 随着网络获得这些新能力,开发者们以引人注目的方式拥抱了它们。为了告诉我们更多,我想介绍我的同事 Aanchal。谢谢,Ben。在我们深入之前,花几秒钟看看你的周围。不,真的。仔细看看你的环境。你们大多数人现在可能在家,这个地方在过去几年里已经转变为一个充满活力的、技术驱动的中心。
[15:08] 我们的孩子把餐厅变成了虚拟教室,我们把厨房变成了办公室,我们都在世界各地的客厅里与家人和朋友联系。向虚拟的转变对我们的生活和工作方式产生了深远的影响。特别是视频和创作领域,规范发生了强大的转变。从休闲创作者到专业设计师,都有实时编辑、分享和协作,但完全是虚拟的。
[15:39] 在房子的某个地方主持和参加视频会议现在是我们日常的一部分,老实说,我们一直在流媒体和狂看比我们想象中更多的内容。我们的团队一直在努力解锁网络的新能力,无论你是将现有体验提升到新的水平,还是构建前沿的、从未做过的东西。我们受到启发并感激看到我们在世界各地的合作伙伴如何构建网络体验,从而实现创造力、表达、沟通、娱乐等等。
[16:14] 一个例子是 Kapwing。Kapwing 是一个协作视频编辑器,拥有超过三百万月活跃用户,每天处理 100,000 个视频。为了告诉你更多,我想邀请一位特别嘉宾,Josh Grossberg。嗨,我是 Josh,Kapwing 的 CTO。Kapwing 是一个基于网络的协作视频编辑器,主要面向休闲创意者,如游戏主播、音乐家、YouTube 创作者和模因制作者。我们也是企业主的首选资源,他们需要一种简单的方法来制作自己的社交内容,如 Facebook 和 Instagram 广告。
[16:48] 人们通常通过搜索特定任务来发现我们,比如“如何修剪视频”、“给我的视频添加音乐”或“调整视频大小”。Kapwing 让用户一键即可立即完成他们搜索的内容。不会因为让他们导航到应用商店下载应用而增加摩擦。网络让人们更容易搜索他们需要帮助的确切内容,然后完成它。我们支付了 $0 的付费获取费用,这证明了这一策略的效果有多好。而且,在第一次点击之后,他们可以做更多的事情。
[17:18] 他们可以探索免费模板,添加新的免费库存视频层,插入字幕和转录视频,并上传背景音乐。此外,用户可以轻松地与朋友和同事在 Kapwing 上协作,无论他们的设备或操作系统如何。只需点击“分享”,获取分享链接并发送给你的合作者。他们所要做的就是点击链接,他们就在和你一起编辑。而且,由于支持不同的设备和操作系统在网络上的工作量最小,它是实现这种协作水平的理想环境。
[17:51] 在 Kapwing 中编辑视频在所有现代浏览器中都能轻松无缝地工作。高性能编辑要求我们用户的所有内容都存在于客户端,尽可能避免网络。为此,我们使用 IndexedDB。Web sockets 实现了现代网络应用中用户期望的实时协作。为了生成波形并允许用户在正确的位置拼接音频,我们使用 Web Audio API。Media Recorder API 允许用户同时录制他们的网络摄像头和屏幕,非常适合在创建屏幕录像时捕捉面部表情,Web Workers 允许我们卸载计算密集型工作,从视频中移除背景而不影响主线程的性能。
[18:35] 当然,我们将 Kapwing 构建为 PWA,因此一旦用户从搜索中找到它,它就可以安装,并且回到它就像从桌面启动它一样简单。未来,我们很高兴使用 Web Codecs 来加速我们的帧绘制,使用 WebGL 来实现更复杂的动画,并使用 Media Source Extensions 来实现剪辑之间更无缝的过渡。这些 API 都不是全新的,但当它们结合在一起时,它们使我们的用户更容易相互协作并快速将他们的想法变为现实。
[19:09] 对我们而言,网络为我们提供了一种精简的方式来触达并吸引更多用户。把时间交回给你,Aanchal。谢谢,Josh。如果你想制作一个严肃的梗图,你知道该去哪里。我强烈推荐试试 Kapwing。它真的很容易使用。现在让我们进入一个我们都再熟悉不过的网络功能:视频会议。在过去两年里,很难找到一个没有点开过 Zoom 会议的人。在 2020,Zoom 迎来了大量用户使用其 Web 应用在线聊天和连接,用于虚拟欢乐时光、小组研讨会、在线网络研讨会等等,应有尽有。
[19:48] Zoom 抓住这个机会,通过 PWA 改善其 Web 体验,并提供与原生应用更接近的体验。这也是 Zoom 为其数百万 Chrome OS 用户提供 Chrome 应用强大替代方案的机会。他们使用新的 WebCodecs API 进行视频编码和解码,这提升了性能,并通过快速、清晰的视频增强了用户体验。链接捕获确保当用户点击电子邮件中指向 Zoom 会议的链接时,它会在 PWA 中打开,而不是在浏览器标签页中打开。
[20:25] 而且,对于 Chrome OS 用户,托管配置让企业能够轻松地在整个员工队伍中安装该 PWA。推出 PWA 仅一个月后,Zoom 就看到 16.9 百万新用户加入网络会议,这意味着同比增长了七百万。随着 WebRTC 和 Fugu API 的发展,以前不可能实现的音频和视频通话体验现在已成为可能。Apple 已将 FaceTime 链接带到 Web,供 Android 和 Windows 用户使用,因此人们可以从他们的 Web 浏览器加入 FaceTime 通话。
[21:02] 我们要感谢 Google Meet PWA 成就了本次主题演讲。我们合作创建了你们今天看到的一切,这一切是通过多次 Google Meet 网络通话完成的,我是说多次,然后在工作室远程制作,而你们很可能正在家里通过 YouTube 观看。Meet 团队使用 WASM SIMD 和 WebGL 在他们的 PWA 中发布了自定义背景和光线调整。这大幅提升了速度以及视频和音频质量。而更好的视频和音频并不全是工作,也有娱乐。
[21:36] 娱乐和社交媒体的世界正在 Web 上蓬勃发展。YouTube Premium 是一项付费订阅,使会员能够无广告地观看 YouTube、在后台播放视频并下载视频以供离线观看。在笔记本电脑和混合设备上离线观看视频是 YouTube Premium 用户最常请求的功能之一。为了实现这一点,他们添加了将其网站转变为可安装 PWA 所需的一切。对于离线体验,他们结合使用了 service worker、缓存存储和 IndexedDB。
[22:11] 当然,团队关注的不仅仅是离线体验。例如,他们使用 Web Share API,以便用户可以将视频链接分享到设备上安装的其他应用,并使用导航预加载来提高 service worker 性能。他们正在进行一项实验,使 YouTube Premium 用户能够下载可在 Chrome、Edge 或 Opera 上离线观看的视频。他们期待很快用这项新功能为 Premium 用户带来惊喜。谈到社交和娱乐,我不能不提到短视频。
[22:46] 这正是 TikTok 引领潮流的地方。TikTok 将 Web 视为获取更多用户、让他们保持满意的渠道,并专注于打造多形态、无摩擦的体验。他们使用 Workbox 优化了其 Web 应用的性能,以预取视频,从而减少用户在视频之间切换时的任何卡顿。他们还把 PWA 扩展到桌面端,充分利用 Web 的超能力——只需构建一次,就能让 TikTok 在任何设备上可用且可访问。
[23:19] 凭借这些跨移动端和桌面端的改进,TikTok 发现来自搜索的流量提升了 10 倍。正如你所看到的,桌面端 Web 在过去几年中经历了突破性创新。用户现在可以使用复杂的创意和生产力工具,这些工具实现了即时表达和协作。无论你是在学习新东西、与老板交谈,还是仅仅在创造美好的事物,每个用例都有强大的 Web 应用。
[23:51] 这就引出了一些令人兴奋的消息,我很高兴与你们分享。在与 Adobe 近三年的持续紧密合作之后,Adobe Creative Cloud 套件中的许多旗舰应用即将登陆 Web。如果没有像 Adobe 这样推动可能性边界的公司的实际使用,将高级功能和能力带到该平台将是不完整的。我们相信这些合作惠及所有开发者,为他们创造令人难以置信的用户体验开辟了新机会。
[24:24] 现在,我想欢迎另一位特别嘉宾,Adobe Photoshop 产品管理与战略副总裁 Pam Clark,来告诉我们更多关于这些发布的信息。大家好。我很高兴能在 Chrome Dev Summit 与你们相聚。在 Adobe,我们相信创造力与协作相辅相成,在过去一年里,我们对 Photoshop 等产品做出了许多改进,以支持客户想要的移动和协作工作流程。
[24:57] 例如,你现在可以将 PSD 存储在云端,因此你可以在所有设备上处理同一个文档。你还可以创建并分享指向云端这些 PSD 的链接。你可以与协作者共同编辑它们,并将它们分享到 Web 上以供审阅和评论。我们致力于帮助人们创造和协作,无论他们想以何种方式工作,这就是为什么上周在 Adobe MAX 上,我们分享了 Creative Cloud 下一次演进的愿景,这个愿景既关乎彼此连接,也关乎创意工具。
[25:31] 几十年来,你只能在电脑上使用 Photoshop,而且还得是一台性能强大的电脑。后来 Photoshop 登陆 iPad 移动端,现在我们正通过公开测试版让 Photoshop 在网页浏览器中可用。得益于与 Google Chrome 和 Web 平台团队的紧密合作,Adobe 能够将 Photoshop 的魔力带给全球更多的人。网页版 Photoshop 测试版允许你访问审阅和评论工作流,并试用一些我们正在试点的 Photoshop 编辑功能。
[26:06] 你的协作者也将能够在浏览器中打开和查看你的作品、提供反馈并进行基本编辑,所有这些都在一个地方完成,无需在桌面或 iPad 上下载或启动 Photoshop 应用程序。Adobe、Google 以及标准组织之间的合作帮助将 Photoshop 所需的功能带入浏览器。Web Assembly 使我们能够将大部分代码库带到 Web 上。其中一些代码依赖异常进行流控制,零成本异常处理的加入意味着没有性能损失。
[26:43] 对于高保真工作,Canvas 2D 现已实现色彩管理,并支持 sRGB 和 P3 色彩空间。将文件读写到磁盘必须感觉自然,而 Storage Foundation API 确保无论你的 PSD 有多大或有多少图层,你都能处理它们。我们仍处于探索网页版 Photoshop 编辑功能的初期,我们期待 Adobe 社区的反馈,这将帮助我们发展浏览器体验的能力和功能。
[27:18] 除了网页版 Photoshop 测试版,上周我们还宣布了 Creative Cloud Spaces 和 Creative Cloud Canvas,两者均处于私人测试阶段。Spaces 是一个共享空间,允许团队访问和组织所有创意项目文件。Canvas 是一个新的界面,团队可以一起展示、可视化和审阅创意作品。我们对为每个人提供更多访问我们工具的方式的想法感到兴奋。通过将它们带到 Web 上,我们正在帮助为你的项目创建一个更流畅、更连接和更协作的环境。
[27:54] 这只是 Creative Cloud 更广泛演变的开始。非常感谢你的时间。现在,Ben 将重新接手,进一步讨论用户体验。感谢 Pam、Josh 和 Aanchal 带领我们了解这些亮点。你知道,Web 上的进步通常以迭代的方式出现,年复一年,一步一步,所以当我们可以退后一步,反思随着时间的推移平台已经变得可能的事情时,这对我来说是惊人的,正如这些例子所展示的那样。
[28:25] 而且,随着 Web 获得新功能和能力,我们听到的另一个主题是帮助开发者从现代 Web 平台中获得最佳结果的重要性。我们做到这一点的一种方式是 Web Vitals 计划,这是大量研究的结果,旨在了解什么使 Web 体验出色。通过 Core Web Vitals,我们仔细研究了许多导致高质量用户体验的因素,并确定了三个具有重大影响的可量化指标。
[28:56] 这些是:第一,用户能多快看到网站最重要的内容;第二,用户能多快开始与该网站互动;第三,网站布局随时间的稳定性。我们发现优化这些指标的网站始终更成功。为了告诉我们更多,我想介绍 Houssein。谢谢,Ben。如果你想建立一个伟大的网站,你需要从真实用户的角度了解它的表现。
[29:27] 这就是 Web Vitals 倡议的全部意义,为开发者和网站所有者提供他们所需的指标、工具和指导,以为每个用户提供出色的体验。去年,我们宣布了 Core Web Vitals,这是一组三个指标,涵盖加载性能、加载期间的输入响应性以及内容的视觉稳定性,将开始在 Google 提供的工具中提供服务,以帮助开发者构建出色的用户体验。那么过去一年发生了什么?由于世界各地的开发者努力改进他们的网站,整个生态系统正在稳步改善。
[30:04] 与一年前相比,Chrome 中现在有 20% 更多的页面访问完全满足推荐的 Core Web Vitals 阈值。而且,Chrome 中满足这些阈值的页面访问总百分比现在为 60%,这是一件大事。这些进步大部分是开发者社区所做工作的直接结果,包括许多内容管理系统、网站构建器和电子商务平台所做的改进。今年春天,我们推出了新的 Core Web Vitals 技术报告,以展示在这些平台上构建的网站的表现。
[30:40] 你可以看到许多都急剧上升并向右,有些显示同比增长超过 200%。像 Duda 和 Jimdo 这样的领导者,其 Core Web Vitals 评分良好的来源超过 50%。我们还与一些流行的 JavaScript 框架合作,包括 Next.js 和 Angular,以在不牺牲开发者体验的情况下提供最佳用户体验。我们将该倡议称为 Aurora,得益于我们为落地强大默认值和优化性能所做的工作,在不到一年的时间里,我们看到移动端 Next.js 和 Angular 来源中具有良好 Core Web Vitals 评分的数量分别增加了 91% 和 111%。
[31:25] 在如此短的时间内取得这样的进展令人难以置信,我们迫不及待地想在不久的将来看到其他框架生态系统出现类似的增长,比如 Nuxt。我们知道,对普通开发者来说,针对 Core Web Vitals 进行优化仍然可能具有挑战性,因此我们对性能工具做了几项新更新,让这一过程轻松许多。首先,我们从彻底改版 PageSpeed Insights 的 UI 开始。PageSpeed Insights 是一款出色的工具,因为它会向你展示来自 Chrome UX Report 的真实用户数据,还会运行 Lighthouse 报告,并基于实验室环境中页面的模拟加载情况,显示改进建议和机会。
[32:05] 新 UI 更清楚地标明了哪些数据是来自真实用户体验的“Field Data”(现场数据),哪些数据是来自 Lighthouse 报告的“Lab Data”(实验室数据)。如果你想查看 Core Web Vital 得分,应该查看真实用户的现场数据。对于任何想要获得具体、可操作的性能改进建议的人,Lighthouse 报告是一个很好的起点。接下来,我们着手解决我们的工具此前一直无法捕捉的一个盲点:用户流程。我们的一些工具一直受限于仅在页面加载期间评估页面。
[32:37] 他们想向下滚动页面、四处点击,或做用户浏览网页时通常会做的任何其他事情。例如,考虑一个典型的结账流程:用户需要执行许多不同的操作来订购咖啡,比如浏览多个页面、将商品加入购物车并确认支付详情。过去,我们只能分别衡量每个页面的性能,但想一想,通过衡量其间的每一个操作和导航,我们能对整体用户体验了解多少。
[33:09] 我们很高兴地宣布,我们已在 Lighthouse 中推出对用户流程的支持,这将使诊断用户旅程中的性能问题并获得改进建议变得更加容易。Lighthouse 将能够区分页面导航、在给定时间跨度内发生的任何用户交互,以及表示页面捕获状态的快照,并分别提供报告。我们引入用户流程分析支持的不只是 Lighthouse。我们在 DevTools 中推出了一个全新的 Recorder 面板,它也让你可以录制网站上的整个用户旅程,并直接在面板中轻松查看用户执行的所有操作,例如导航、按键、链接点击等。
[33:54] 你可以下载用户流程并将其导出为 Puppeteer 脚本用于测试、重放它,甚至点击并在性能面板中轻松衡量性能跟踪记录。这不仅会让理解和调试交互的过程变得更加容易,还会帮助你更好地识别整个用户旅程中的性能机会。Recorder 面板目前处于预览阶段,团队正在积极开发它,所以请继续关注更多功能。我们所有的工具都对 Core Web Vitals 指标帮助开发者成功改善全球数百万网站的用户体验起到了重要作用,而所有这些新变化将大大帮助你准确了解可以在哪里以及如何继续改进。
[34:41] 那么,Core Web Vitals 指标本身接下来会怎样?出色的用户体验远不止三个方面。我们正在努力填补当前指标集尚未覆盖的空白。我们很高兴介绍我们一直在试验的两项新指标,我们认为它们将改进网络上用户体验的衡量方式,我们也希望得到你的反馈。第一项指标用于衡量整体输入响应性。如今,我们衡量的是首次用户输入的响应性,但理想情况下,我们希望将其扩展为捕捉从用户进入你的网站到离开的每一次用户输入。
[35:22] 我们还改进了捕捉事件时序的 API,以便更好地监控完整的事件生命周期,并更好地处理触发多个事件的复杂用户输入。第二项指标衡量滚动和动画的流畅度。我相信我们都遇到过页面在滚动或动画期间卡顿或冻结的情况。我们希望更好地了解这种情况发生的频率以及严重程度。我们仍在研究这两项指标,也很希望听到你的反馈。
[35:53] 这些文章详细解释了我们目前的想法,所以请读一读,并思考如何使用它们来帮助改善你网站的用户体验。如果你有任何想法或建议,欢迎给我们发电子邮件。我们对所有帮助开发者成功为用户打造快速、愉悦体验的进步感到兴奋,这些进步体现在指标本身、来自社区,以及直接体现在许多工具和平台中。如果你还没有这样做,请前往 PageSpeed Insights 查看你的网站在 Core Web Vitals 指标上的得分。
[36:25] 我们还有许多其他出色的工具,你也可以用它们来持续监控和优化你网站的性能,所以一定要去看看,找出最适合你的那一个。现在,在分享一些关于 UX 设计的激动人心的更新之前,我将把时间交还给 Ben。谢谢,Houssein。我非常期待看到 Core Web Vitals 在未来几年如何演变。当然,高质量的 Web 体验不仅仅关乎衡量和优化。它们需要充满热情的设计师和开发者在幕后努力创造令人愉悦的数字界面,并且需要配备合适的工具和能力来实现这一点。
[37:04] 几年前,一群工程师开始重新思考 Chromium 对 HTML、CSS 和图形(Graphics)的支持,这促成了一个名为 RenderingNG 的项目,这是对 Chromium 渲染引擎的一次雄心勃勃的重构。这项工作现已基本完成,它正在推动 Web 用户体验设计的重大演进。为了告诉我们更多,我将把时间交给 Una。谢谢。我们今天讨论的一切都回归到用户体验。
[37:36] 隐私、测量、下一代 Web 能力,共同创造符合我们 Web 愿景的更好体验,同时为开发者提供构建这些体验所需的工具和能力。所以,今天,我很高兴分享大量即将推出的 UI 样式和 DevTools 的更新和变化。首先,让我们谈谈响应式设计及其演变。响应式设计不再只是确保界面在桌面和移动设备上看起来都很好。开发者现在拥有工具,可以在组件驱动的架构模型中,基于个性化的用户偏好真正创建定制化的用户体验。
[38:14] 我们称之为“新响应式”,它包括对用户做出响应,通过用户偏好查询和暗黑模式、prefers-reduced-motion 等模态;对新形态因素做出响应,如可折叠设备,支持多显示功能;以及通过容器查询对页面上的其他组件做出响应。这是开发者高度要求的功能。我们一直与 CSS 工作组合作制定此功能的规范,并通过 Chrome 渲染引擎的近期变化实现了该功能的实施。
[38:44] 新的容器查询规范允许你访问父元素的宽度,以便为其子元素做出样式决策。你甚至可以嵌套容器查询并创建命名查询,以便于访问和组织。让我们看一个例子。这里有一个响应式的“加入购物车”按钮,我可以将其放置在容器中的任何位置。然后,当我将其放入这个产品卡片(它也是一个容器)内时,我可以查询产品卡片本身,以重新设置已经响应式的按钮的样式,并将其从居中对齐改为左对齐。
[39:15] 这表面上看起来可能很简单,但这是以前没有大量脚本就无法实现的事情,而大量脚本会显著降低页面速度。我们正在与开源社区合作,在将该功能构建到平台中的同时,为容器查询提供 polyfill。使用容器查询使你的界面更加灵活。组件在它们所在的位置拥有所有各自的响应式样式,而不依赖全局视口来调整样式。对于基于组件的开发来说,这是一个巨大的范式转变,我们很高兴看到你们如何充分利用这个新功能。
[39:48] 如果你想尝试,容器查询现在可以在 Chrome Canary 中通过标志进行测试。而且,由于这一重大转变,我们一直在努力通过提供 DevTools 来支持你,让你在该功能发布时能够使用容器查询进行调试和样式设置。在这里,你可以看到 DevTools 指出了子元素的容器所在位置,并高亮显示了由其应用的样式。说到响应式 DevTools,我们今年发布了几个新工具,用于更好的布局调试。Grid 的布局工具现在允许你为特定的网格线添加名称,并显示网格区域的大小。
[40:24] 我也喜欢 Flexbox 和 Grid 的动态新工具。这些工具让你实际看到不同的属性值在页面上的效果,并让你能够通过点击按钮轻松更改布局规则。这些新的 DevTools 旨在使 CSS 布局更易于可视化和理解,从而为你腾出更多时间为用户构建新功能,减少查找 justify 和 align 之间差异的时间。我们简化流程的另一种方式是推出 web.dev 模式,这是一个现成的 UI 模式集合,你可以在 Web 项目中使用。
[40:57] 为了帮助你快速开始构建 UI 的基础,我们添加了布局模式,从大型全页面布局和卡片集到可以存在于这些较大布局中的较小布局(例如卡片本身),应有尽有。所有这些模式都使用 CSS Grid、Flexbox 或容器查询,以展示你可以多快地掌握这些工具并从头开始构建界面。我们还与 Clearleft 的 Jeremy Keith 合作,在 web.dev 上推出了“学习响应式设计”。这是一门免费的在线课程,包含了你需要了解的关于为当今新响应式 Web 设计的一切知识。
[41:31] 你将学习主题化、艺术指导、用于国际化的逻辑属性、利用偏好查询等等。今天,我们在 web.dev/learn/design 上推出了前几个课程模块,未来几周还会有更多模块推出。我们还在更新“学习 CSS”课程,增加六个新模块。“学习 CSS”是 web.dev 上另一门免费的、常青的课程和参考,你可以在这里提升你的 CSS 知识并测试你的技能。我们在今年的 Google I/O 上推出了前 24 个模块,现在我们正在介绍列表、背景、过渡、文本和排版、媒体查询等。
[42:07] 请务必查看这些新模块,并在准备好后深入了解。我们还在努力在 CSS 中推出一些新功能。除了容器查询之外,我们团队还在思考如何引入作用域样式和级联层。它们还没有完全准备好。我们很高兴在未来几个月与您和网络社区合作,推动它们向前发展。我们确实有一个特别有趣的新 API 已准备好供探索,那就是 Scroll Timeline。以前,您可以使用基于时间的 CSS 动画,并在一段时间内移动。
[42:38] Scroll Timeline 让您可以为动画设置基于滚动的偏移量和时间。这意味着您可以设置一个元素在您向下或横向滚动页面时进行动画。相当不错。您可以在 Canary 中使用实验性网络平台功能标志来探索 Scroll Timeline。我们最近还有另一个令人兴奋的新增功能达到了首个公开工作草案,那就是 CSS 嵌套。嵌套是一种语法糖,将 CSS 预处理器最受欢迎的功能之一带到网络上,堆叠您的样式以获得更简洁的开发体验。
[43:11] 虽然嵌套规范将让您的样式更小巧、更封装,但我们建议您不要超过三层深度,以确保最佳性能。我们还推出了用于排版的 size-adjust 属性。这对于防止核心网页指标的累积布局偏移特别有用,因为您可以调整默认字体以更好地匹配您的网络字体。这会在网络字体加载时减少卡顿。最后但同样重要的是,accent-color 刚刚在 Chromium 和 Firefox 稳定版中落地。accent-color 是一行 CSS 超能力,可为您的表单控件(如复选框和单选按钮)提供与您品牌匹配的主题色。
[43:47] 我们从开发者和用户那里收到了很多功能请求,但有一个是明显的宠儿,特别是对于喜欢在夜间浏览网页的你们。深色模式是一个受欢迎的功能,我们很兴奋能在此基础上继续发展,不是因为你们要求它,而是因为它的影响超出了用户界面。在 OLED 设备上,深色主题已显示出比浅色主题可测量的电池寿命节省。在我们对单台 Pixel 6 设备的实验室研究中,我们发现了一个迹象:在 60% 亮度下,对于 OLED 屏幕,深色主题比浅色主题少用 11% 的电量。
[44:23] 这也是一个用户喜爱的功能。当 Twitter 发布其新 Twitter 渐进式网络应用的第一个预览版时,每个人都说:“哇,它又新又快,但深色模式在哪里?”他们调查了用户需要添加什么,用户说了三件事:深色模式、表情符号选择器,以及更多深色模式。所以这对许多非常直言不讳的用户来说是一件大事。要创建深色主题,我们建议使用 CSS 自定义属性和“prefers-color-scheme”媒体功能,所有常青浏览器都支持它。
[44:53] 这使您可以根据用户偏好换入和换出主题颜色,这是我们新的响应式框架和一系列目标的核心部分。如果您需要帮助按照您喜欢的方式设置深色模式,Material Design 团队通过他们对构建精美深色主题的研究提供了出色的指导。这包括如何通过使用亮度而不是阴影来调整深度、如何调整颜色鲜艳度以减少视觉振动等等。为了让您的团队更轻松,Chrome 正在开发一种机器学习辅助的自动深色算法功能。此功能将包括自动变暗的网站,以及一些在更细粒度层面上选择退出自动深色功能的可供性。
[45:31] 我们仍处于功能开发的早期阶段,我们需要您的帮助来把它做好。要立即尝试,请在 Chrome Canary 中打开 DevTools 渲染面板并启用自动深色模式模拟。查看链接以了解更多信息并向我们提供您的想法。现在,我将最后一次交回给 Ben。谢谢,Una。你知道,过去一年我们在网络上看到了很多变化,对于平台的未来,在我们刚刚谈到的领域及其他领域,我们仍然比以往任何时候都更加乐观。在未来几年,您可以期待看到我们继续努力,使网络更加私密和强大,并为开发者提供更好的工具和指导,为世界各地的人们创造顶级体验。
[46:17] 网络之所以如此特别,部分原因在于它是一个开放、去中心化的生态系统,这为任何人提供了许多参与帮助塑造其未来的方式。我们邀请您参与这项工作,无论是通过 Chromium 开源项目、W3C 和其他标准机构,还是仅仅在 web.dev 和我们的 @ChromiumDev Twitter 账户上关注我们。而且,在接下来的几周里,作为这次虚拟 CDS 2021 的一部分,我们将举办一系列研讨会、小组学习休息室和一对一办公时间,您可以在其中直接与 Chrome 团队互动,在专家指导下审核您自己的网站,给我们反馈,并分享您对网络未来的想法。
[47:00] 那么,感谢您的观看,我希望在不久的将来在未来的 Chrome Dev Summit 活动中再次亲自见到您。在那之前。
查看英文原始字幕
[0:24] Hello, and welcome to a very virtual Chrome Dev Summit 2021. I’m Ben, and in the next few minutes, my colleagues and I, along with a few guests, will share some of the highlights of our work over the past year to improve the web. In 2008, Chrome launched a vision the web could be more than just rich documents, that it could enable fast, safe and powerful applications across devices available instantly with just the click of a link. This vision of the web has become more relevant than ever during the pandemic, as people around the world realize how powerful the web platform has become, and look increasingly to the web and their browser to get things done every day.
[1:07] And the web's continued success is only possible because it's continued to evolve through the years, adapting as technology advances and as people’s expectations shift. As we at Google help evolve the web, we strive for transparency and openness in all that we do, collaborating closely with developers, users, and the rest of the ecosystem. Now, this theme of web evolution is the central one for this video, and we’re gonna highlight a number of examples that represent the web's continual progress.
[1:43] One of the most important of these themes comes from feedback we consistently receive from web developers, both via surveys and individual conversations, and this theme is the importance of cross-browser compatibility. Now, of course, this theme isn’t new, and through the years, the Chrome team has joined with others on various initiatives to help. Recent examples include the Web Platform Test Project, which is a comprehensive cross-browser test suite for new web platform features, hosted on GitHub, and the Open Web Docs initiative that brings together a large coalition to collaboratively contribute to the web platform documentation that’s hosted on Mozilla’s Developer Network.
[2:25] This year, we’ve added a new initiative to the list, a cross-browser effort called Compat 2021 that’s focused on improving compatibility in five key areas of the web, all related, shockingly, to CSS. To measure our progress, the Compat 2021 team was able to use the aforementioned Web Platform Test project to quantify compatibility scores for these areas across the latest development builds of Chrome, Edge, Firefox, and Safari.
[2:58] Now, while we’re not done yet, we’ve already seen significant improvement since March, and we’ll keep pushing to make the web much more compatible in these and other critical areas. Another area in which the web is evolving is privacy, as we seek to curtail third-party tracking practices while preserving important and critical capabilities that enable a vibrant, global web ecosystem. To tell us more, I’d like to introduce my colleague Barb. Thank you, Ben.
[3:30] We believe it’s important for people to be in control of their information, including their online activity. Most users believe it’s important too, with privacy concerns increasingly driving choices about what people do online. We also see regulations around the world stepping up privacy requirements rapidly. And, yet, it’s difficult for developers to meet growing expectations for privacy, when so many capabilities rely on third-party cookies and other cross-site tracking mechanisms that weren’t designed with privacy in mind.
[4:07] We need new technologies for a modern, privacy-focused web, and that’s what the Privacy Sandbox is about. We’re working with the web community and industry stakeholders to develop new privacy-preserving technologies that can support a healthy, sustainable ecosystem. This includes purpose-built APIs to support advertising, which is a critical part of the ecosystem and funds much of the web's content, as well as many other capabilities that modern sites need, like fraud detection, identity, or content that’s customized to a user’s device.
[4:46] Now, let’s take a minute to clarify what we mean by purpose-built APIs. Many of the use cases that I just mentioned were never really built into the web platform but layered over it using general purpose technologies like third-party cookies. The browser has no way to tell whether you’re using third-party cookies for something helpful, like providing a customized experience or keeping a user logged in, or for cross-site tracking. By designing APIs for each specific use case, we can ensure appropriate privacy protections, give people more useful controls, and ideally, make each API better at what it does over time.
[5:26] Once these new APIs are in place, we’ll make sure that developers have time to adopt them, so that we can safely phase out support for third-party cookies in Chrome while continuing our work to mitigate other types of tracking so cross-site tracking doesn’t simply shift from third-party cookies to covert methods. To make this complex project easier to follow, we’re sharing progress in two places. privacysandbox.com explains the vision, goals, and concepts behind this initiative.
[5:57] It also includes a high-level timeline that we’re updating every month. The timeline links to each technology we’re working to test and launch, and lays out a stage plan for phasing out third-party cookies in Chrome. The second resource is the Privacy Sandbox section at developer.chrome.com. Here, you’ll find more technical detail and implementation guidance, including a blog with the latest updates for developers. We've just added a post with all the links and updates from this session.
[6:29] Now, we talk a lot about the importance of collaboration in this project, and I’d like to show you what that looks like at each stage of development. I'll mention some APIs as examples, but the broader idea is to illustrate how ecosystem involvement is shaping this work. This process will be familiar to many of you in the web development community, but the Privacy Sandbox is bringing a lot of newcomers to this process, including industry stakeholders who will use these purpose-built APIs and whose expertise is critical in their development.
[7:06] The first stage of the process is discussion, where anyone can propose and weigh in on ideas for new technologies. There have been dozens of privacy-preserving proposals offered by Chrome and others over the last couple of years. They’re all online, so you can read them, ask questions, offer ideas to improve them and see what others are saying. To find live conversations where all of the proposed solutions are being discussed and debated together, there are a number of W3C groups that you can join or monitor, depending on the types of use cases you’re interested in.
[7:40] Here’s one example to illustrate how involved this discussion stage can get. FLEDGE is a proposal to support interest-based advertising without cross-site tracking. With valuable input from privacy advocates and many industry stakeholders, FLEDGE has evolved from two previous proposals, with more than 100 organizations joining W3C meetings to help refine the current version and over 200 online discussion threads. There have also been more than half a dozen other proposals in the same solution space.
[8:12] Through continued incubation, we hope we’ll reach consensus on a path forward, and at the same time, we’re starting developer testing for the initial version of FLEDGE behind a flag in Chrome so that developers can get their hands on it. Not all of these proposals will go through such an intense incubation period. Some will move much more quickly, but there’s a lot of innovation happening here. These are new ideas, and it can take a lot of work to get them right. The next stage is testing. There are already a handful of proposals ready for developer testing today, and you can expect more as we head into 2022.
[8:49] And don’t be surprised to see some iterative cycles of discussion and testing. Testing is important precisely because it surfaces issues or gaps that may require more work. Testing in Chrome usually starts with a feature behind a flag for developers to test locally. This means you need to turn it on in your browser to try it out. This code is often very fresh, so you can expect to find some issues. And then Origin Trials, each running for a limited time with a limited population of Chrome users.
[9:21] Origin Trials are public and open to all developers. You just need to register to opt-in your site or service. This is when we get actionable feedback from developers on what works, what doesn’t, and where those gaps are. Success at this stage depends not only on developers doing hands-on testing, but on their being willing to share what they learn. For example, Yahoo! Japan recently published a detailed analysis of their test of the Attribution Reporting API, highlighting areas for improvement, like the need for a better way to deliver conversion reports, which has now been added.
[9:59] These are the sorts of things that turn up once developers get their hands on an API. We also hope to see companies talking about their approach to testing and how they expect to use an API. During the Origin Trial for the first version of FLoC, a proposal to support interest-based advertising and content, we were pleased to see companies like CafeMedia publishing their analysis and insights so that others could see what they’d learned. And Chrome tests aren’t the only way to explore how new technologies might work.
[10:30] Some companies are also building simulations based on Privacy Sandbox concepts. Advertising platform Criteo recently ran a competition with more than 150 teams testing different machine learning models to evaluate how differential privacy concepts such as noise insertion and aggregation might impact advertising performance. It’s helpful to examine these concepts since they underlie several of the Privacy Sandbox APIs. We are truly appreciative of the companies investing their time to test these new technologies, and of their being willing to share their perspectives and learnings publicly.
[11:09] Now, once an API is tested and ready for general use in Chrome, we'll announce the launch and make sure public documentation is ready for scaled adoption. User-Agent Client Hints, or UA-CH, launched in Chrome earlier this year and is now ready to scale. It's part of the Privacy Sandbox workstream to reduce covert tracking, such as browser fingerprinting. But first, let’s back up and take a look at the legacy mechanism it’s replacing. Like cookies, the User-Agent string is an early web feature.
[11:43] By default, it provides a lot of information about the user's browser and device, making it a readily available surface for fingerprinting. It also has a format that can be a headache to parse. We recently announced plans to reduce the granularity of information available in Chrome’s User-Agent string starting in April of 2022. To get that information in the future, you’ll need to transition to User-Agent Client Hints. It'll give you some information by default, which may cover most of your use cases, with more detailed information on request in a straightforward format.
[12:18] We were happy to make this ergonomic improvement for developers, while at the same time moving the majority of User-Agent information from an available by default model to an on request model. That way, you can request only the information you need, which is good practice today and the pattern we want to set for the future. So let's go back to the timeline I showed you a moment ago. Gradual UA string reduction starts in April of 2022. The replacement solution, User-Agent Client Hints, has been launched and ready for scaled adoption since March.
[12:54] So you can begin testing and migrating to it any time now. To help with that, there’s an Origin Trial to opt in to the reduced UA string early, so that you can see what that future state will look like. And if it turns out that you need more time, you’ll be able to opt in to keep using the User-Agent string as-is through March 2023. The details of this plan are all online, and while the scaled adoption stage might not look exactly like this for other APIs, you can expect to see consistency in the overall approach.
[13:31] We’ll continue to explain what’s happening, provide as much visibility as we can, encourage your involvement and hear your input. We appreciate all contributions to this complex and vitally important project as we seek to create durable web features with broad utility and strong privacy protections for users. It’s worth this effort to get the foundations right. And Ben, I will hand it back to you. Thanks, Barb.
[14:02] The Privacy Sandbox is one of the largest efforts we’ve seen to evolve the web. We believe that it’s critically important to help ensure the web’s continued health and success for decades to come. The next theme we’ll highlight is web capabilities. Over the past several years, the web’s gained a number of powerful new integrations that enable web apps to do more. We’ve been heavily involved in this with the Fugu Project, collaborating with others in the ecosystem to unlock things like secure file system access and rich integration with operating system launchers.
[14:37] And as the web has gained these new capabilities, developers have embraced them in compelling ways. To tell us more, I’d like to introduce my colleague Aanchal. Thanks, Ben. Before we dive in, take a couple of seconds to look around you. No, really. Look closely at your surroundings. Most of you are probably at home right now, a place that, in the last couple of years, has transformed into a buzzing, tech-driven hub.
[15:08] Our kids have turned the dining room into a virtual classroom, we’ve turned the kitchen into our office, and we’re all connecting with family and friends in living rooms around the world. The pivot to virtual has had profound impact on how we live and work. In particular, it’s the world of video and creation that has seen a powerful shift in norms. From casual creators to professional designers, there’s real-time editing, sharing and collaboration, but it’s entirely virtual.
[15:39] Hosting and attending video conference calls from some part of the house is now a regular part of our day, and let’s be honest, we’ve been streaming and binge-watching more content than we ever thought possible. Our team has worked hard to unlock new powers for the web, whether you’re taking your existing experience to the next level, or building something that’s cutting edge and never been done before. We’re inspired and grateful to see how our partners around the world are building web experiences that enable creativity, expression, communication, entertainment and so much more.
[16:14] One example is Kapwing. Kapwing is a collaborative video editor with more than three million monthly active users processing 100,000 videos a day. To tell you more, I’d like to invite a special guest, Josh Grossberg. Hi, I’m Josh, CTO at Kapwing. Kapwing is a web-based collaborative video editor designed mainly for casual creatives like game streamers, musicians, YouTube creators and memers. We’re also a go-to resource for business owners who need an easy way to produce their own social content, like Facebook and Instagram ads.
[16:48] People usually discover us by searching for a specific task, like “how to trim a video,” “add music to my video,” or “resize a video.” Kapwing lets users instantly do what they search for with one click. There's no added friction by making them navigate to an app store to download an app. The web makes it simpler for people to search for precisely what they need help with, and then do it. The fact that we pay $0 in paid acquisition is a testament to how well this strategy has worked. And, after that first click, they can do a whole lot more.
[17:18] They can explore free templates, add new layers of free stock videos, insert subtitles and transcribe videos, and upload background music. Also, it’s simple for users to collaborate on Kapwing with friends and colleagues, regardless of their device or operating system. Just click “Share,” get a share link and send it to your collaborator. All they have to do is click the link and they are editing with you. And, because supporting different devices and OSs takes minimal work on the web, it’s the ideal environment to enable this level of collaboration.
[17:51] Editing videos in Kapwing works easily and seamlessly in all modern browsers. High-performance editing requires all of our users’ content to live on the client, avoiding the network whenever possible. For that, we use IndexedDB. Web sockets enables real-time collaboration users expect in modern web apps. To generate waveforms and allow users to splice together audio in exactly the right place, we use the Web Audio API. The Media Recorder API allows users to simultaneously record their webcam and screen, perfect for catching facial expressions when creating screencasts, Web Workers allow us to offload computationally intensive work, removing the background from videos without affecting the performance of the main thread.
[18:35] And, of course, we’ve built Kapwing as a PWA, so once users have found it from search, it’s installable, and coming back to it is as easy as launching it from their desktop. In the future we’re excited to use Web Codecs to accelerate our frame drawings, use WebGL to enable more sophisticated animations, and use Media Source Extensions to have more seamless transitions from clip to clip. None of these APIs are brand new, but when combined together, they make it a lot easier for our users to collaborate with each other and quickly bring their ideas to life.
[19:09] For us, the web gives us a streamlined way to reach and engage more users. Back to you, Aanchal. Thanks, Josh. If you’re looking to create a serious meme, you know where to go. I highly recommend trying out Kapwing. It’s really easy to use. And now onto a web feature we’re all more than familiar with: Video Conferencing. It’ll be hard to find someone who hasn’t clicked on a Zoom meeting in the last two years. In 2020, Zoom saw a huge influx of people using its web app to chat and connect online for virtual happy hours, group workshops, online webinars, you name it.
[19:48] Zoom took this opportunity to improve their web experience with a PWA, and to provide a more comparable experience to their native apps. It was also a chance for Zoom to offer its millions of Chrome OS users a powerful alternative to their Chrome app. They’re using the new WebCodecs API for video encoding and decoding, which improves the performance and enhances the user experience with fast, clean video. Link capturing ensures that when a user clicks on a link to a Zoom meeting in their email, it opens in the PWA and not in a browser tab.
[20:25] And, for Chrome OS users, managed configurations allow enterprises to easily install the PWA across the workforce. Just one month after launching the PWA, Zoom saw 16.9 million new users join web meetings, which amounts to an increase of seven million year-over-year. With developments in WebRTC and Fugu APIs, audio and video call experiences previously not possible are now available. Apple has brought FaceTime links to the web for Android and Windows users so people can join a FaceTime call from their web browser.
[21:02] And we have the Google Meet PWA to thank for this keynote. We collaborated and created everything you see today on several Google Meet web calls, and I mean several, then produced it remotely in a studio, and you’re most likely watching it on YouTube at home. The Meet team shipped custom backgrounds and light adjustments in their PWA using WASM SIMD and WebGL. This has drastically improved the speed as well as the video and audio quality. And better video and audio aren’t all work and no play.
[21:36] The world of entertainment and social media is thriving on the web. YouTube Premium is a paid subscription enabling members to watch YouTube ad-free, play videos in the background and download videos to watch offline. Watching videos offline on laptops and hybrid devices was one of the top requested features from YouTube Premium users. To make this possible, they added everything necessary to turn their site into an installable PWA. For the offline experience, they use a combination of service workers, cache storage, and IndexedDB.
[22:11] Of course, the team focused on more than just the offline experience. For example, they use the Web Share APIs so users can share links to videos with other installed apps on the device, and navigation preload to increase service worker performance. They're running an experiment to enable YouTube Premium users to download videos that can be watched offline on Chrome, Edge or Opera. They’re looking forward to delighting Premium users with the new feature soon. I can’t talk about social and entertainment without mentioning short-form videos.
[22:46] That's where TikTok is leading the way. TikTok views the web as a channel to acquire more users, keep them happy, and they focused on creating a multi-form-factor, frictionless experience. They’ve optimized the performance of their web app using Workbox to prefetch videos to reduce any lag as users transition between videos. They’ve also expanded the PWA to desktop, leaning in on the web superpower of building just once and making TikTok available and accessible on any device.
[23:19] With these improvements across mobile and desktop, TikTok has seen the traffic from search has improved by 10x. As you can see, web on desktop has seen path-breaking innovation in the last years. Users now have access to complex creativity and productivity tools that are enabling instant expression and collaboration. There’s a powerful web app for every use case whether you’re learning something new, talking to your boss, or simply creating something beautiful.
[23:51] And that brings us to some exciting news that I'm thrilled to share with you. After nearly three years of an ongoing strong partnership with Adobe, many flagship apps in the Adobe Creative Cloud Suite are soon coming to the web. Bringing advanced features and capabilities to the platform would be incomplete without real use by companies like Adobe that are pushing the edge of what’s possible. We believe these collaborations benefit all developers, opening up new opportunities to create incredible experiences for their users.
[24:24] And now I’d like to welcome another special guest, Pam Clark, VP of Product Management and Strategy for Adobe Photoshop, to tell us more about these launches. Hello, everyone. I’m excited to be here with you at Chrome Dev Summit. At Adobe, we believe creativity and collaboration go hand in hand, and over the past year, we’ve made lots of advancements to products like Photoshop to support the kinds of mobile and collaborative workflows our customers want.
[24:57] For instance, you can now store PSDs in the cloud, so you can work on a single document across all of your devices. You can also create and share links to those PSDs in the cloud. You can co-edit them with your collaborators and share them on the web for review and comment. We are committed to helping people create and work together, no matter how they want to work, which is why at Adobe MAX last week, we shared a vision for the next evolution of Creative Cloud, one that is as much about connecting with each other as it is about creative tools.
[25:31] For decades, you could only use Photoshop on a computer, a powerful computer at that. Then Photoshop went mobile on the iPad, and now we’re making Photoshop accessible in a web browser via a Public Beta. Thanks to the close collaboration with the Chrome and Web Platform Team at Google, Adobe is able to bring Photoshop magic to millions more people around the globe. The Photoshop on Web Beta allows you to access review and comment workflows and test out some Photoshop editing features we are piloting.
[26:06] Your collaborators will also be able to open and view your work in the browser, provide feedback, and make basic edits, all in one place, without having to download or launch the Photoshop application on the desktop or iPad. The collaboration between Adobe, Google, and within the standards bodies helped bring the functionality needed for Photoshop into the browser. Web Assembly allowed us to bring large portions of our codebase to the web. Some of that code relies on exceptions for flow control, the addition of zero-cost exception handling means there’s no performance penalties.
[26:43] For high fidelity work, Canvas 2D is now color-managed and supports sRGB and the P3 color space. Reading and writing your files to disk had to feel natural, and the Storage Foundation API ensures that you can work on your PSDs no matter how big or how many layers they have. We are still at the beginning of exploring Photoshop editing features on the web, and we are looking forward to the feedback from the Adobe Community, which will help us grow the capabilities and functionality of the browser experience.
[27:18] In addition to Photoshop on Web Beta, last week we also announced Creative Cloud Spaces and Creative Cloud Canvas, both in Private Beta. Spaces are a shared place that allows teams to access and organize all their creative project files. Canvas is a new surface where teams can display, visualize, and review creative work together. We are excited by the idea of giving everyone more ways to access our tools. By bringing them to the web, we are helping to create a more fluid, more connected and more collaborative environment for your projects.
[27:54] This is just the beginning of a broader evolution of Creative Cloud. Thanks so much for your time. And, now, Ben will pick things back up to talk some more about user experiences. Thanks, Pam, Josh and Aanchal, for walking us through these highlights. You know, progress on the web generally comes in iterations, year-over-year, step by step, and so it’s amazing to me when we can take a step back and reflect on what’s become possible in the platform over time, as these examples have shown.
[28:25] And, as the web gains new features and capabilities, another theme we hear is the importance of helping developers get the best results they can out of the modern web platform. And one way we’re doing this is the Web Vitals program, which is the result of much research to know what makes a web experience great. With Core Web Vitals, we closely examined many factors that lead to high-quality user experiences, and we identified three quantifiable measures that have a big impact.
[28:56] These are, one, how quickly a user can see a site’s most important content; two, how quickly a user can start to interact with that site; and three, the stability of the site’s layout over time. We found websites optimizing these measures are consistently more successful. To tell us more, I’d like to introduce Houssein. Thanks, Ben. If you want to build a great website, you need to understand how it performs from a real user’s point of view.
[29:27] That’s what the Web Vitals initiative is all about, giving developers and site owners the metrics, tools and guidance they need to deliver a great experience for every user. Last year, we announced Core Web Vitals, a set of three metrics that covers loading performance, input responsiveness during load, and the visual stability of content will begin to be serviced across tools provided by Google to help developers build great user experiences. So what’s happened in the past year? Thanks to developers around the world working hard on improving their sites, the ecosystem as a whole is steadily improving.
[30:04] 20% more page visits in Chrome now fully meet the recommended Core Web Vitals thresholds compared to a year ago. And the total percentage of page visits in Chrome that meet these thresholds is now 60%, which is a big deal. Much of these advancements are a direct result of the work being done by developer communities, including the improvements that many content management systems, website builders, and e-commerce platforms have made. This past spring, we launched the new Core Web Vitals Technology Report to show how sites built on these platforms perform.
[30:40] You can see that many are sharply up and to the right with some showing more than 200% improvement year-on-year. And leaders like Duda and Jimdo surpassing 50% of Origins with good Core Web Vitals scores. We've also worked with some popular JavaScript frameworks, including Next.js and Angular, to deliver the best user experiences possible without sacrificing developer experience. We’re calling the initiative Aurora, and thanks to the work we’ve done to land strong defaults and optimize performance, in less than a year, we’ve seen 91% and 111% increases in the number of mobile Next.js and Angular Origins, respectively, that have good Core Web Vitals scores.
[31:25] That's incredible progress in a short time span, and we can’t wait to see similar growth in other framework ecosystems in the near future, like Nuxt. We know optimizing for Core Web Vitals can still be challenging for the everyday developer, so we’ve got a couple of new updates to our performance tooling that make the process a lot easier. First, we started with a complete revamp of the PageSpeed Insights UI. PageSpeed Insights is a great tool because it’ll show you real-user data from the Chrome UX Report, and it’ll also run a Lighthouse report and show suggestions and opportunities to improve based on a synthetic load of the page in a lab environment.
[32:05] The new UI makes it much clearer which data is “Field Data” coming from real-user experiences, and which data is “Lab Data” coming from the Lighthouse report. If you want to check a Core Web Vital Score, you should look at real user field data. For anyone who wants specific, actionable suggestions for how to improve performance, the Lighthouse report is a great place to start. Next up, we’ve worked on addressing a blind spot that our tooling hasn’t been able to capture yet: user flows. Some of our tools have been limited by only assessing your pages during load.
[32:37] They want to scroll down the page, click around, or do anything else users typically do as they browse the web. For example, consider a typical checkout flow where someone needs to perform a number of different actions to order some coffee, like navigating through several pages, adding items to a cart, and confirming their payment details. In the past, we could only measure the performance of each page separately, but think about how much more we could learn about the overall user experience by measuring every action and navigation in between.
[33:09] We’re glad to announce we’ve rolled out support for user flows in Lighthouse, which will only make it easier to diagnose performance issues within a user journey and get suggestions for how to improve. Lighthouse will be able to distinguish and provide separate reports for page navigations, any user interactions that occurred during a given time span, and snapshots to represent a captured state of a page. It’s not just Lighthouse where we’re introducing support to analyzing user flows. We launched a completely new Recorder Panel in DevTools that will also let you record an entire user journey on your website and easily view all the actions taken by the user directly in the panel, such as navigations, key presses, link clicks and so on.
[33:54] You can download the user flow and export it as a Puppeteer script for testing, replay it, and even click and easily measure the performance trace in the performance panel. Not only will this make the process of understanding and debugging interactions easier, it will also help you better identify performance opportunities throughout the user journey. The Recorder Panel is currently in the preview stage, and the team is working on it actively, so stay tuned for more features. All our tooling has been instrumental to how the Core Web Vitals metrics have helped developers succeed in improving the user experiences of millions of sites around the world, and all of these new changes will go a long way to help you understand precisely where and how you can keep getting better.
[34:41] Now, what’s next for the Core Web Vitals metrics themselves? Well, there's more to great user experiences than just three areas. We’re working hard to fill the gaps that the current set of metrics don’t address just yet. We’re excited to introduce two new metrics we’ve been experimenting with that we think will improve how user experience is measured on the web, and we’d love to get your feedback on them. The first is a metric to measure Overall Input Responsiveness. Today, we measure the responsiveness of the first user input, but ideally we want to extend that to capture every user input from the moment they land on your site to the moment they leave.
[35:22] We’ve also made improvements to the APIs that capture event timing, so we can better monitor the full event lifecycle and better handle complex user inputs to trigger more than one event. The second metric measures scrolling and animation smoothness. I’m sure we’ve all had experiences where a page will stutter or freeze during scrolling or animations. We want to better understand how often this happens and how severe it is. We’re still working on both of these metrics, and we’d love to hear your feedback.
[35:53] These articles explain our current thinking in detail, so give them a read and think about how using them can help improve the user experience of your site. Feel free to send us an email if you have any thoughts or suggestions. We’re excited about all the advancements made to help developers succeed in building fast, delightful experiences for their users, in the metrics themselves, from the community, and directly in many tools and platforms. If you haven’t, go to PageSpeed Insights to see how your site scores on the Core Web Vitals metrics.
[36:25] We also have a number of other great tools that you can also use to continuously monitor and optimize your site’s performance, so be sure to check them out to see which one works best for you. Now, I’ll pass it back to Ben before we share some exciting updates about UX design. Thanks, Houssein. I’m really excited to see how Core Web Vitals evolves in the coming years. Of course, quality web experiences are about more than just measurement and optimization. They require the efforts of passionate designers and developers who work behind the scenes to create delightful digital interfaces, and need to be armed with the right tools and capabilities to do that.
[37:04] A few years ago, a group of engineers set about rethinking Chromium’s support for HTML, CSS, and Graphics, which led to an effort called RenderingNG, an ambitious refactoring of Chromium’s rendering engine. This work has now largely landed, and it’s enabling a major evolution in web user experience design. To tell us more, I’ll hand things over to Una. Thank you. Everything we’ve talked about today comes back to the user experience.
[37:36] Privacy, measurement, next-gen web capabilities, working together to create better experiences that align with our vision for the web, while giving developers the tools and capabilities they need to build them. So, today, I’m excited to share a ton of updates and changes coming down the pipeline for UI styling and DevTools. First, let’s talk about responsive design and how it’s evolving. Responsive design is no longer about making sure an interface looks good on both desktop and mobile devices. Developers now have the tools to really create customized user experiences based on personalized user preferences in a component-driven architecture model.
[38:14] We’re calling this The New Responsive, and it includes being responsive to the user, with user preference queries and modalities like dark mode and prefers-reduced-motion, being responsive to new form factors like foldable devices, which allow for multi-display functionality, and being responsive to other components on the page with container queries. This is a feature that’s been highly requested by developers. We’ve been working with the CSS working group to spec this feature and have been able to unlock the implementation through recent changes in the Chrome Rendering Engine.
[38:44] The new container queries spec lets you access a parent element’s width to make styling decisions for its children. You can even nest container queries and create named queries for easier access and organization. Let’s take a look at an example. Here’s a responsive “Add to Cart” button that I can place anywhere in the container. Then when I put it inside of this product card, which is also a container, I can query the product card itself to restyle the already-responsive button and shift it from being center-aligned to left-aligned.
[39:15] This might look easy on the surface, but it’s something no previously possible without a lot of heavy scripting, which would significantly slow down your page. We’re working with the open-source community to provide a polyfill for container queries as we build the feature into the platform. Using container queries makes your interfaces much more flexible. Components own all of their individual responsive styles right where they are, and don’t rely on the global viewport to adjust styles. This is a huge paradigm shift for component-based developments, and we’re excited to see how you make the most of this new feature.
[39:48] If you wanna try it out, container queries are now available for testing behind a flag in Chrome Canary. And, because of this big shift, we’ve been working hard to support you by providing DevTools that allow you to debug and style with container queries as the feature launches. Here, you see that DevTools is pointing out where the container for the child is and highlighting the styles being applied by it. Speaking of responsive DevTools, we released several new tools this year for better layout debugging. Layout tooling for Grid now allows you to add names to specific grid lines and also shows you the size of your Grid areas.
[40:24] I also love the dynamic new tools for Flexbox and Grid. These let you actually see what different property values do on the page and give you the ability to easily change layout rules with the click of a button. These new DevTools are designed to make CSS Layout easier to visualize and understand which frees up more time to build new features for your users and less time looking up the differences between justify and align. Another way we help simplify the process is by launching web.dev patterns, a collection of off-the-shelf UI patterns you can use in your web projects.
[40:57] To help you quickly get started with building the base of your UI, we’ve added layout patterns for everything from large, full-page spreads and card sets to smaller layouts that can live within those larger layouts, such as the cards themselves. All of these patterns use CSS Grid, Flexbox, or container queries to showcase how quickly you can pick up these tools and build interfaces from the ground up. We also partnered with Jeremy Keith of Clearleft to launch “Learn Responsive Design” on web.dev. This is a free online course with everything you need to know about designing for the new responsive web of today.
[41:31] You'll learn about theming, art direction, logical properties for internationalization, utilizing preference queries, and so much more. Today, we’re launching the first few course modules at web.dev/learn/design, with more to come in the following weeks. We’re also updating our “Learn CSS” course with six new modules. “Learn CSS” is another free, evergreen course and reference on web.dev where you can level up your CSS knowledge and test your skills. We launched the first 24 modules at Google I/O this year, and now we're introducing lists, backgrounds, transitions, text and typography, media queries, and more.
[42:07] Be sure to check out those new modules and dive in when you’re ready. We’re also working on rolling out some new features in CSS. In addition to container queries, our team’s thinking about how to introduce scoped styles and cascade layers. They’re not ready just yet. We’re excited to work with you and the web community over the next few months to push them forward. We do have a particularly fun new API that’s ready for exploration, and that’s Scroll Timeline. Before, you could create CSS animations with a time-basis and moved over a length of time.
[42:38] Scroll Timeline lets you set scroll-based offsets and timings for animations instead. That means you can set an element to animate as you scroll down or across a page. Pretty neat. You can explore Scroll Timeline using the experimental web platform features flag in Canary, We have another exciting addition recently reaching its first public working draft, and that’s CSS nesting. Nesting is a syntactic sugar that brings one of the most popular features of CSS preprocessors to the web, stacking your styles for a cleaner developer experience.
[43:11] While the nesting spec will let you keep your styles tinier and more encapsulated, we recommend you don’t go more than three layers deep to ensure the best performance. We’ve also launched the size-adjust property for typography. This is particularly useful for preventing Cumulative Layout Shift for Core Web Vitals, as you can adjust the default font to better match your web font. This causes less jank as the web font loads in. And last but not least, accent-color just landed in Chromium and Firefox stable. Accent-color is a one-line CSS superpower that gives your form controls, like checkboxes and radios, a theme color to match your brand.
[43:47] We get a lot of feature requests from developers and users alike, but one is a clear favorite, especially for those of you who love to browse the web at night. Dark Mode is a popular feature we’re excited to build on, and not because you asked for it but because its impact extends beyond the user interface. Dark themes have shown measurable battery life savings over their light theme counterparts on OLED devices. In our lab study with a single Pixel 6 device, we found an indication that at 60% brightness, dark theme used 11% less power than light themes for OLED screens.
[44:23] And it’s a feature that users love too. When Twitter released the first preview of their new Twitter progressive web app, everyone said, “Wow, it’s new and fast, but where’s dark mode?” They surveyed users on what they needed to add, and users said three things: dark mode, an emoji picker, and more dark mode. So it’s kind of a big deal to a lot of very vocal users. To create a dark theme, we recommend using CSS custom properties and the “prefers-color-scheme” media feature, which is supported in all evergreen browsers.
[44:53] This lets you swap theme colors in and out based on what your users prefer, a core part of our new responsive framework and set of goals. If you need help getting dark mode set up the way you like it, there’s excellent guidance from the Material Design team via their research on building beautiful dark themes. This includes how to adjust depth by using lightness instead of shadows, how to adjust color vibrancy to reduce visual vibration, and more. To make it even easier for your team, Chrome is working on a machine learning-aided auto-dark algorithm feature. This feature will include auto-darkened websites, along with a few affordances to opt-out of the auto dark functionality on a more granular level.
[45:31] We’re still in the early stages of feature development, and we need your help to get it right. To try it out now, open the DevTools Rendering Panel in Chrome Canary and enable Auto Dark Mode Emulation. Check out the link to learn more and to give us your thoughts. Now, I’ll pass back to Ben one last time. Thanks, Una. You know, we’ve seen a lot of change in the web over the past year, and we’re still more optimistic than ever about the future of the platform across the areas we just talked about and more. In the years ahead, you can expect to see us continue to push hard to make the web more private and powerful and to provide developers with better tools and guidance to create top-quality experiences for people all over the world.
[46:17] Part of what makes the web so special is that it’s an open, decentralized ecosystem, which presents lots of ways for anyone to get involved to help shape its future. We invite you to participate with this effort, whether that’s through the Chromium open source project, the W3C and other standards bodies, or simply following along with us on web.dev and our @ChromiumDev Twitter account. And, over the next couple of weeks, as part of this virtual CDS 2021, we're hosting a number of workshops, group learning lounges, and one-on-one office hours where you can engage directly with the Chrome team, audit your own sites with expert guidance, give us feedback, and share your ideas for the future of the web.
[47:00] And, with that, thank you for watching, and I hope to see you again in person sometime soon at a future Chrome Dev Summit event. Until then.
在Vidleaf工作台中打开
搜索转录文本,选择行,复制带时间戳的引文,翻译。
署名
“Chrome Dev Summit 2021 | 主题演讲:Chrome 的新功能”由 Chrome for Developers (https://www.youtube.com/@chromedevs) 制作,根据 CC BY 3.0 (https://creativecommons.org/licenses/by/3.0/) 许可。源视频:https://www.youtube.com/watch?v=Df2U9-R-OJs。此页面是视频的文本转录,添加了段落分隔和时间戳;创作者与 Vidleaf 无关,也不为其背书。Vidleaf 添加了 AI 标点和 AI 生成的摘要;原始措辞仍可在此页面上找到。
您是创作者或权利持有人吗?请求更正或移除:copyright@vidleaf.app(参见关于这些页面)。
最后更新于