访问网页版上来就要下载字体资源文件消耗时间

オープン
#29 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
dart, flutter
領域
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時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ILoveScratch2/TouchFish-Client のほかの issue

ILoveScratch2/TouchFish-Client の issue をすべて見る

似ている issue

Dart の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。