mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
By splitting all large fallback fonts (1MB+) into smaller parts, we get faster downloads and fast decoding. Some fonts are split into 100+ parts, and that's causing `main.dart.js`'s size to grow by ~47KB (Brotli-compressed). The increase in size is due to the extra data we have to store about all the parts of these fonts. The PR also makes changes to ensure we don't download the same license file 100 times (once for each part of the split font). Fixes https://github.com/flutter/flutter/issues/138288 Part of https://github.com/flutter/flutter/issues/153974