perf: ottimizzazioni web performance

- Font: display=swap, range pesi ridotti, rimosso preload fragile
  - Rimossa libreria Font Awesome (sostituita con SVG inline)
  - Aggiunte dimensioni esplicitate width/height su immagini per CLS
  - Aggiunto preconnect per Leaflet map tiles
This commit is contained in:
2026-04-26 17:07:23 +02:00
parent dbe5ac0d5d
commit b1fac24e19
2 changed files with 24 additions and 25 deletions
+7 -18
View File
@@ -9,27 +9,16 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="preconnect" href="https://cdnjs.cloudflare.com" />
<!-- Preload font critici -->
<!-- Fonts con display=swap per evitare FOIT -->
<link
rel="preload"
href="https://fonts.gstatic.com/s/newsreader/v7/cY9OjfjR0BbZwlP_L-yUg6LpXf23ojW-ImqFpQjBciXQg0KMFQ.119.woff2"
as="font"
type="font/woff2"
crossorigin
href="https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,700;1,400&family=Manrope:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@24,400,0&display=block"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Manrope:wght@200..800&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@24,400,0&display=swap"
rel="stylesheet"
/>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
rel="stylesheet"
/>
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">