Commit 7ea5587
committed
fix: eliminate FOUC and switch og:image to PNG
Replace `import appCss from '#/styles.css?url'` + `head.links` stylesheet
entry with a side-effect import. The two-pass Vite build (SSR + client)
was hashing the same CSS to different bytes; the SSR HTML referenced one
hash while only the other lived on disk, so the browser 404'd on the
stylesheet and painted unstyled until React 19 swapped in the working
one at hydration. Side-effect import routes both passes through the
unified asset pipeline so the URL matches.
Switch og:image from SVG to a 1200x630 PNG rendered from the SVG source
(Twitter/Facebook/LinkedIn don't render SVG previews reliably) and add
og:image:width/height/type/alt + twitter:image:alt so crawlers can lay
out the card before the image fetch resolves.1 parent 666906b commit 7ea5587
3 files changed
Lines changed: 7 additions & 3 deletions
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
0 commit comments