element: the first-load size budget is used up

オープン
#546 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
38/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, web-dev

調査の方向性

Read build.js and inspect the first-load size report from npm run size -w pivotkit-element; compare the local result with the CI measurement described in the issue. Identify code that can load on demand and assess how the 175 KiB budget should be enforced. Done means the first-load budget policy and the local-to-CI size check are addressed.

索引モデルが issue の本文から書いたものです。

説明

area:react enhancement

pivotkit-element's first load ("initial" in build.js SIZE_BUDGET_KIB) is at its budget. On main, CI measured 175.0 KiB gzip against 175 KiB, and #545 raised the budget to 175.1 KiB for 40 bytes of shared grid constants. Each new feature that touches the first load will hit the budget again.

CI measures about 0.6 KiB more than a local macOS build, so a local npm run size -w pivotkit-element can pass while CI fails.

Proposal:

  • Find what in the first load could load later: chart planning code, menus that open only on demand, texts of rare messages.
  • Decide whether the budget stays a hard line at 175 KiB, or moves with a recorded reason.
  • Make the local size check match CI, for example by pinning the same esbuild and gzip level, or by printing the CI difference.
主要言語
JavaScript
スター
1
フォーク
1
平均マージ
3時間 21分
マージ済み PR(30日)
250

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eizedev/pivotkit のほかの issue

eizedev/pivotkit の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。