You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Catch errors since some browsers throw when using the new `type` option.// https://bugs.webkit.org/show_bug.cgi?id=209216try{// Create the performance observer.constpo=newPerformanceObserver((list)=>{for(constentryoflist.getEntries()){// Log the entry and all associated details.console.log(entry.toJSON());}});// Start listening for `longtask` entries to be dispatched.po.observe({type: 'longtask',buffered: true});}catch(e){// Do nothing if the browser doesn't support this API.}
指标收集
异常
性能
业务
性能
核心指标
https://web.dev/learn-core-web-vitals/
LCP: https://web.dev/lcp/, 加载速度
FID: https://web.dev/fid/, 响应速度
CLS:https://web.dev/cls/, 视觉稳定性,比如点击了一个按钮,突然按钮跑下面去了。
重要指标
https://web.dev/metrics/
长任务(longtask)
https://web.dev/custom-metrics/#long-tasks-api
TTI
可以使用 tti-polyfill
TBT
SI
使用 speedline
The text was updated successfully, but these errors were encountered: