GitHub(@github)
What we shipped is a recurring measurement pass, gated on idle and scoped to roughly 2400px around t...
7.0内容质量
TL;DR · AI 摘要
GitHub推出基于空闲触发的测量传递机制,优化布局稳定性,限制测量范围在视口2400px内。
核心要点
- 测量传递机制在用户空闲时触发,限制范围为视口周围2400px
- 已挂载块作为真实数据源,观察者仅标记块不直接写入高度
- 用户操作导致的块调整可同步修正,避免反馈循环
结构提纲
按章节快速跳转。
思维导图
用一张图看清主题之间的关系。
查看大纲文本(无障碍 / 无 JS 友好)
- GitHub布局优化机制
- 测量传递机制
- 触发条件:用户空闲
- 范围限制:2400px视口范围
- 数据处理流程
- 已挂载块:真实数据源
- 观察者:仅标记块不写入高度
- 特殊处理
- 用户操作触发同步修正
- 避免反馈循环影响布局
金句 / Highlights
值得收藏与分享的关键句。
测量传递在空闲时触发,限制在视口2400px范围内,减少性能损耗。
已挂载块作为真实数据源,观察者仅标记块不直接写入高度。
用户操作导致的块调整可同步修正,避免反馈循环影响布局稳定性。
#前端性能#布局优化#GitHub#视口测量
打开原文GitHub on X: "What we shipped is a recurring measurement pass, gated on idle and scoped to roughly 2400px around the viewport. Mounted blocks are ground truth. Observers normally only flag a block for the pass. They don’t write heights themselves. There’s one exception: a visible block resizing be… / X
GitHub
@github
What we shipped is a recurring measurement pass, gated on idle and scoped to roughly 2400px around the viewport. Mounted blocks are ground truth. Observers normally only flag a block for the pass. They don’t write heights themselves. There’s one exception: a visible block resizing because of the user’s action can apply one synchronous correction before paint. That keeps the comment and code below it moving together without reopening the feedback loop.
6:06 PM · Oct 12, 2026
·
1,188
Views
1
2