You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: Load fonts with font-display swap, preloads and caching
Mobile Lighthouse attributes ~400 ms of first-paint delay to the fonts
blocking text rendering:
- font-display: swap on all six faces, so text renders in the fallback
font until the webfonts arrive.
- Preload the two above-the-fold fonts (body Noto Sans 400 and heading
IBM Plex Mono 600), so they usually arrive before first paint anyway.
- Cache the UI bundle assets for a day via netlify.toml headers (the
Lighthouse cache-lifetimes finding; a day keeps a stale-css window
after deploys short since the file names are not content-hashed).
0 commit comments