LoginSignup
0
0

More than 1 year has passed since last update.

Lighthouse ドキュメントを読んでの要点メモ

Posted at

Lighthouseの公式ドキュメントを読んで ~ Performance編 ~

目次

  1. 記事作成の背景
  2. 公式ドキュメント
  3. 概要
  4. 各項目の詳細

記事作成の背景

Lighthouseを使ってみて、Performanceの数字が変動するのが気になったので調べることにした

公式ドキュメント

今回はweb.dev内のLighthouseカテゴリの中から特にPerformance auditsを取り上げる。
また機会があれば、PWAなど他の項目もまとめるかも。

概要

以下の4項目に分かれている

  1. Performance audit scoring
  2. Metrics
  3. Opportunities
  4. Diagnostics

Performance scoreに直接影響してくるのはMetricsの項目であるが、OpportunitiesやDiagnosticsも間接的には関わってくる

In general, only metrics contribute to your Lighthouse Performance score, not the results of Opportunities or Diagnostics. That said, improving the opportunities and diagnostics likely improve the metric values, so there is an indirect relationship.

各項目の詳細

Performance audit scoring

Why your score fluctuates

スコア変動の理由。

How the Performance score is weighted

Performance scoreの重み付け。

  • Performance scoreは加重平均
  • 効果が大きいものに対して重み付けを大きくしている
    • 何がインパクトあるかは日々の調査によって変更される

例えば、
Lighthouse6から8では、Total Blocking TimeCumulative Layout Shiftの重みが大きくなっている

How metric scores are determined

ミリ秒の単位でLCP(Larget Contentful Paint)などの各項目の測定が行われ、それぞれ0から100までのスコアに変換される
それらがもとにPerformance scoreが決められる。

得点分布の50~92までは直線だが、それ以上になると幅広い範囲での各項目の改善をしないとスコアは上がりにくい

Metrics

各項目があり、それぞれの名前のみ列挙(詳細はリンク先)

Opportunities

各項目があり、それぞれの名前のみ列挙(詳細はリンク先)

Diagnostics

各項目があり、それぞれの名前のみ列挙(詳細はリンク先)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0