Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

A trimmed app still gets bit BlazorUI's whole icon font, its lazy scripts manifest and every params class

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

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

@msynk đang làm issue này rồi.

Từ ngày 20/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Measured on todo-small.bitplatform.cc, a trimmed Blazor WebAssembly publish of bit Boilerplate:

  1. The icon font is never trimmed. BitBlazorUITrimIcons only trims bit.blazorui.icons.css, and FabMDL2.4.66.woff2 is always published whole: 176.6 KB, downloaded on the first visit. The app uses about 178 of its 2,313 glyphs, and a font with only those is 15.7 KB (tried with fontTools).

  2. bit-lazy-scripts.json stays embedded in Bit.BlazorUI (14 KB) and Bit.BlazorUI.Extras (4.5 KB) and lists every module, even in a trimmed publish of an app that doesn't use lazy scripts.

  3. Every component the app renders keeps its whole params class, though the app creates only a few of them. Each component's OnParametersSet calls CascadingParameters?.UpdateParameters(this) and has [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(Bit...Params))], and UpdateParameters has two lambdas per parameter. In todo-small the 74 params classes the app never creates take about 380 KB of the 2.7 MB Bit.BlazorUI.wasm (5,216 methods, 3,845 fields), and about 44 KB of Bit.BlazorUI.Extras.wasm.

Ngôn ngữ chính
C#
Star
1.4k
Fork
264
Merge trung bình
20 giờ 36 phút
Pull request đã merge (30 ngày)
322

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 bitfoundation/bitplatform

Tất cả issue của bitfoundation/bitplatform

Issue tương tự

Thêm issue về C#

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.