element: the first-load size budget is used up
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 38/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- javascript, web-dev
- 领域
- frontend, performance
调研方向
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 内容生成。
描述
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 分钟
- 30 天内合并 PR
- 250
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
eizedev/pivotkit 的其他 Issue
-
accessibility area:react bug
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
area:tests
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
area:cli bug
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
area:cli enhancement
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area:react enhancement
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
embedpdf/embed-pdf-viewer#1116 ·
维护者通常 1 天内回复
-
[Docs]: Clarify theme variables location and usage in CONTRIBUTING.md可能已有人在做 @srishtimishra520-beep 今天认领。 未关闭kind/docs
难度 1/5 1 小时以内 新手友好度 88/100
meshery/meshery.io#3220 · 1 条评论 ·
维护者通常 1 天内回复
-
Module: Analytics P2 Team S Type: Infrastructure
难度 1/5 1 小时以内 新手友好度 90/100
google/site-kit-wp#14190 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
maathimself/mailflow#801 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
falbany/ProFiles#187 · 1 条评论 ·
维护者通常 1 天内回复