diff options
| author | Fuwn <[email protected]> | 2026-02-03 00:07:20 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-03 00:07:20 -0800 |
| commit | 37c82408bed8310e05a1e75b5521d44931991541 (patch) | |
| tree | 38c59b729227aea0bcdae6dfc432196f42b08cdb /src/app.html | |
| parent | perf: Optimise LCP with image loading and animation fixes (diff) | |
| download | due.moe-37c82408bed8310e05a1e75b5521d44931991541.tar.xz due.moe-37c82408bed8310e05a1e75b5521d44931991541.zip | |
perf(fonts): Move font loading to HTML for faster FCP
Diffstat (limited to 'src/app.html')
| -rw-r--r-- | src/app.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/app.html b/src/app.html index 2942c457..85f89c52 100644 --- a/src/app.html +++ b/src/app.html @@ -56,6 +56,17 @@ <!-- Web Application Manifest --> <link rel="manifest" href="%sveltekit.assets%/manifest.json" /> + <!-- Fonts --> + <link + rel="preload" + href="https://proxy.due.moe/?q=https://fonts.googleapis.com/css?family=DM+Sans:400,500,600,700&display=swap" + as="style" + /> + <link + rel="stylesheet" + href="https://proxy.due.moe/?q=https://fonts.googleapis.com/css?family=DM+Sans:400,500,600,700&display=swap" + /> + <!-- Stylesheets --> <link rel="stylesheet" type="text/css" href="%sveltekit.assets%/styles/LaTeX.css" /> <link rel="stylesheet" type="text/css" href="%sveltekit.assets%/styles/risotto/risotto.css" /> |