Google Analytics script execution should be deferred
オープン
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 11.8k
- フォーク
- 7.9k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 11
説明
Currently GA script executes asynchronously while page is loading without a good reason for doing so since there are no custom GA events being tracked when page load is happening or right after it finishes, it's also showing up in Lighthouse score report as a very small main-thread blocker. Performance-wise it would be better to defer the script execution until the page has finished loading
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、ページの読み込み中に使用されている Google Analytics 統合を特定します。現在の非同期動作を確認し、続いて、ページの読み込みが完了するまでスクリプトが遅延され、Lighthouse がそれをメインスレッドのブロッカーとして報告しなくなったことを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- performance, web-dev
- issue の種類
- リファクタリング
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100