前端主要性能的相关指标

这里主要以谷歌的技术文章为依据,此处主要是对参考文章的总结和摘要。

https://web.dev/metrics/ 中已经有更细节的指标描述,而且做了中文版本的翻译,方便大家更好的学习和参考。

定义指标

为了确保用户体验,我们通常围绕以下问题来进行性能的相关优化:

Is it happening?

发生了么

Did the navigation start successfully? Has the server responded?

导航是否成功启动?服务器响应了吗?

Is it useful?

是有用的么

Has enough content rendered that users can engage with it?

是否渲染了足够的内容给用户?

Is it usable?

可以使用了么

Can users interact with the page, or is it busy?

用户可以与页面进行交互,还是页面仍在忙碌中?

Is it delightful?

流畅么

Are the interactions smooth and natural, free of lag and jank?

交互是否流畅,没有延迟和卡顿?

如何度量

指标类型

重要的衡量指标

该处的内容会有一个专题来描述每个指标具体怎么看。

指标的参考值

注意参考值中的“参考”,表示以下标准适用于大多数场景,但具体情况仍需要具体分析,不可一概而论。

参考资料

Comments