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

bit Boilerplate compresses the library CSS and JS again instead of serving their published .br

Đã đóng
#14,068 0 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

Một pull request liên quan đã được merge.

  • #14069 của @yasmoradi — đã merge

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
csharp, css, wasm
Lĩnh vực
backend, performance

Hướng nghiên cứu

Start by reading how Server.Web serves library files under _content through UseStaticFiles, how UseResponseCompression handles those responses, and how UseBlazorFrameworkFiles serves published .br files under _framework. Compare the delivered CSS and JS sizes with their published Brotli files; done means the library assets use the published compressed files without being compressed again. Linked pull request #14069 is already open.

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

Mô tả

Without MapStaticAssets (#14059), bit Boilerplate's Server.Web serves the library files under _content through UseStaticFiles, which doesn't know about the .br files the publish writes next to them. UseResponseCompression then compresses each one again at its fastest level: on adminpanel.bitplatform.dev bit.blazorui.css reaches the browser as 165 KB of Brotli while its published .br is 71 KB, and bit BlazorUI's, Extras' and Butil's CSS and JS together cost about 175 KB more than their published files on a first visit.

_framework doesn't have this problem: UseBlazorFrameworkFiles serves its published .br files.

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

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.