Open pwstrick opened 4 years ago
@pwstrick FMP在最新版Lighthouse已经废弃了,这个指标意义不大
@pwstrick FMP在最新版Lighthouse已经废弃了,这个指标意义不大
好的 我修改一下
FP(First Paint),首次绘制,第一个像素点绘制的时间。
const FP = performance.getEntriesByName('first-paint')[0].startTime
FCP(First Contentful Paint),首次内容绘制,第一个DOM元素渲染页面的时间。
const FCP = performance.getEntriesByName('first-contentful-paint')[0].startTime
FP和FCP是指什么?如何计算?