Make WordPress Core(核心开发)· Aditya Dhade·· 8 天前编辑评分59
WordPress 7.2-beta1 移除脚本与样式合并,改用预取优化加载
Performance Chat Summary: 20 October 2026
编辑导读
WordPress 7.2-beta1 已取消脚本与样式合并,不再使用 load-scripts.php 和 load-styles.php。WordPress 7.2 将预取下一页已知会使用的阻塞脚本与样式,以改善加载性能。
完整聊天记录可从 Slack 上的这里开始查看。
WordPress 性能跟踪工单
- @westonruter shared that, as of r64585, eliminating script/style concatenation has landed in WordPress and is included in the 7.2-beta1 release. This retires the use of
load-scripts.phpandload-styles.phpand closed more than 10 Trac tickets, several of which were over 10 years old.- 脚本/样式拼接仅用于核心自身的登录/管理后台资源。它完成了预期作用,尤其是在 HTTP/1.1 环境下,但 WordPress 7.2 将采用一种更现代、性能更好的方式,其中已知会在下一屏幕使用的阻塞脚本和样式会被预取。此方法最近已合入 r64120。
我们的下一次聊天将于 2026 年 11 月 3 日星期二 16:00 UTC 在 Slack 的 #core-performance 频道举行。
#core-performance、#hosting、#performance、#performance-chat、#summary
来源:Make WordPress Core(核心开发) · https://make.wordpress.org/core/2026/10/20/performance-chat-summary-20-october-2026/