element: the first-load size budget is used up

Đang mở
#546 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
38/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, web-dev
Lĩnh vực
frontend, performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
JavaScript
Star
1
Fork
1
Merge trung bình
3 giờ 21 phút
Pull request đã merge (30 ngày)
250

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eizedev/pivotkit

Tất cả issue của eizedev/pivotkit

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.