mirror of
https://github.com/iflytek/skillhub.git
synced 2026-08-28 11:25:00 +00:00
* fix(web): self-host Inter and JetBrains Mono fonts web/index.html loaded Inter + JetBrains Mono from fonts.googleapis.com at runtime. On networks where Google Fonts is slow or unreachable (e.g. CN), that stylesheet blocks first paint for tens of seconds (#716). Vendor the same woff2 (from the @fontsource distribution) under web/public/fonts and declare them in fonts.css with latin/latin-ext unicode-range splits and font-display: swap, then point index.html at the local stylesheet and drop the fonts.googleapis.com / fonts.gstatic.com hosts from the page CSP. Only Inter and JetBrains Mono were ever fetched from the CDN, so families and weights are unchanged; no external font requests remain. Closes #716 Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com> * docs(web): record vendored font licenses Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> --------- Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com> Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> Co-authored-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| fonts.css | ||
| inter-latin-400-normal.woff2 | ||
| inter-latin-500-normal.woff2 | ||
| inter-latin-600-normal.woff2 | ||
| inter-latin-700-normal.woff2 | ||
| inter-latin-ext-400-normal.woff2 | ||
| inter-latin-ext-500-normal.woff2 | ||
| inter-latin-ext-600-normal.woff2 | ||
| inter-latin-ext-700-normal.woff2 | ||
| jetbrains-mono-latin-400-normal.woff2 | ||
| jetbrains-mono-latin-500-normal.woff2 | ||
| jetbrains-mono-latin-ext-400-normal.woff2 | ||
| jetbrains-mono-latin-ext-500-normal.woff2 | ||
| LICENSE.md | ||