访问网页版上来就要下载字体资源文件消耗时间
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 领域
- performance
调研方向
The complaint is that the Flutter web build blocks first paint on a ~9MB HarmonyOS Black font download. Start by finding where that font is declared and bundled (the font entries in pubspec.yaml and the web bootstrap in web/index.html), then measure the initial load to confirm the font is the bottleneck. From there the work is either subsetting the font to the glyphs actually used, deferring it so text renders with a fallback first, or serving it in a compressed/woff2 form — done when first contentful paint no longer waits on the full font file.
由索引模型根据 Issue 内容生成。
描述
访问网页版先下载鸿蒙黑体,大约9MB,压缩后也约6MB,对弱网环境很不友好,尤其是低带宽服务器,像是那种2h2g3M的,下载这个资源文件就要占满带宽,还要将近20s才能加载完毕
- 主要语言
- Dart
- 星标
- 20
- 派生
- 9
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ILoveScratch2/TouchFish-Client 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 3/5 1-2 天 新手友好度 48/100
ILoveScratch2/TouchFish-Client#28 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 55/100
-
难度 3/5 1-2 天 新手友好度 48/100
-
[ADVICE]关于文件存储未关闭enhancement-feature(功能)
难度 5/5 一周以上 新手友好度 30/100
ILoveScratch2/TouchFish-Client#14 · 5 条评论 ·
查看 ILoveScratch2/TouchFish-Client 的全部 Issue
相似的 Issue
-
消费码加载时间太长未关闭
难度 2/5 1-3 小时 新手友好度 68/100
HeZeBang/TechPie-flutter#294 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
ccch1mneyyy/dsh-Go#2192 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
hiddify/hiddify-app#2724 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
commetchat/commet#1123 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
lichess-org/mobile#4099 ·
维护者通常 1 天内回复