Commit ba49a5b
perf(dashmint-lab): strip SDK modulepreload + parallelize fonts
Vite auto-injects <link rel="modulepreload"> for every dynamic-import
chunk it discovers. For the ~8MB Evo SDK that defeated the previous
deferral commit — the browser raced to fetch the SDK in parallel with
the entry chunk, blocking FCP. Filter it out via
build.modulePreload.resolveDependencies.
Also move the Google Fonts URL out of CSS @import (which serializes
the font fetch behind the stylesheet parse) and into <link> tags in
index.html with preconnect to fonts.googleapis.com / fonts.gstatic.com,
so the font fetch parallelizes with the JS download.
Together with the prior dynamic-import commit, FCP drops from 5.1s to
2.7s on a localhost preview Lighthouse run.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d89b9f2 commit ba49a5b
3 files changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
26 | 38 | | |
27 | 39 | | |
28 | 40 | | |
| |||
0 commit comments