Commit 8994bdc
committed
perf: async-load Google Fonts to unblock rendering
Replace blocking stylesheet link with preload + onload swap.
Page renders immediately with system font fallback, swaps to
Inter/JetBrains Mono once loaded. Saves ~800ms on mobile FCP.1 parent 2748e8f commit 8994bdc
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
0 commit comments