Perf(site): images WebP, compression, cache et sécurité .htaccess
- Convertis les captures hero en WebP (2,65 Mo → 156 Ko) et retire les PNG d'origine - Active gzip, headers de cache et options de sécurité dans .htaccess - Corrige le type MIME image/webp manquant - Supprime le script feature-cards.js inexistant (404 à chaque page) - Laisse le cache HTTP gérer la revalidation des routes (au lieu de no-store) + preconnect vers l'API GitHub
No files matched your search
|
Before Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 524 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 550 KiB |
|
After Width: | Height: | Size: 79 KiB |
@@ -161,7 +161,10 @@
|
||||
clearInjectedPageScripts();
|
||||
|
||||
const source = routeToSource(route);
|
||||
const response = await fetch(source, { cache: "no-store" });
|
||||
// On laisse le cache HTTP faire son travail (revalidation 304) :
|
||||
// le .htaccess renvoie « Cache-Control: no-cache » sur le HTML,
|
||||
// donc on revalide à chaque navigation sans re-télécharger le corps.
|
||||
const response = await fetch(source);
|
||||
if (!response.ok) {
|
||||
throw new Error(`Impossible de charger ${source} (${response.status})`);
|
||||
}
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
<main data-page-content>
|
||||
<section class="hero hero-carousel" aria-label="Présentation de FWS Linux">
|
||||
<div class="hero-carousel-track" data-hero-track>
|
||||
<article class="hero-slide is-active" data-hero-slide style="background-image: url('/p/assets/img/hero/xfce.png');" aria-hidden="false"></article>
|
||||
<article class="hero-slide" data-hero-slide style="background-image: url('/p/assets/img/hero/install.png');" aria-hidden="true"></article>
|
||||
<article class="hero-slide" data-hero-slide style="background-image: url('/p/assets/img/hero/gnome.png');" aria-hidden="true"></article>
|
||||
<article class="hero-slide is-active" data-hero-slide style="background-image: url('/p/assets/img/hero/xfce.webp');" aria-hidden="false"></article>
|
||||
<article class="hero-slide" data-hero-slide style="background-image: url('/p/assets/img/hero/install.webp');" aria-hidden="true"></article>
|
||||
<article class="hero-slide" data-hero-slide style="background-image: url('/p/assets/img/hero/gnome.webp');" aria-hidden="true"></article>
|
||||
</div>
|
||||
|
||||
<div class="hero-inner">
|
||||
@@ -65,13 +65,13 @@
|
||||
<p>Interface moderne, complète et hautement personnalisable. Un excellent choix si vous voulez un bureau riche avec de nombreux outils intégrés.</p>
|
||||
</div>
|
||||
<figure class="env-media">
|
||||
<img src="/p/assets/img/hero/KDE.png" alt="Capture d'écran de l'environnement KDE Plasma sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
<img src="/p/assets/img/hero/KDE.webp" alt="Capture d'écran de l'environnement KDE Plasma sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
</figure>
|
||||
</article>
|
||||
|
||||
<article class="env-row">
|
||||
<figure class="env-media">
|
||||
<img src="/p/assets/img/hero/gnome.png" alt="Capture d'écran de l'environnement GNOME sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
<img src="/p/assets/img/hero/gnome.webp" alt="Capture d'écran de l'environnement GNOME sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
</figure>
|
||||
<div class="env-text">
|
||||
<h3>GNOME</h3>
|
||||
@@ -85,13 +85,13 @@
|
||||
<p>Environnement léger et très stable, idéal pour les machines modestes ou pour privilégier les performances au quotidien.</p>
|
||||
</div>
|
||||
<figure class="env-media">
|
||||
<img src="/p/assets/img/hero/xfce.png" alt="Capture d'écran de l'environnement XFCE sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
<img src="/p/assets/img/hero/xfce.webp" alt="Capture d'écran de l'environnement XFCE sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
</figure>
|
||||
</article>
|
||||
|
||||
<article class="env-row">
|
||||
<figure class="env-media">
|
||||
<img src="/p/assets/img/hero/hyprland.png" alt="Capture d'écran de l'environnement Hyprland sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
<img src="/p/assets/img/hero/hyprland.webp" alt="Capture d'écran de l'environnement Hyprland sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
</figure>
|
||||
<div class="env-text">
|
||||
<h3>Hyprland</h3>
|
||||
@@ -105,7 +105,7 @@
|
||||
<p>Version minimale pour les utilisateurs avancés, les serveurs ou ceux qui veulent construire leur système à la carte. Aucun bureau graphique n'est préinstallé.</p>
|
||||
</div>
|
||||
<figure class="env-media">
|
||||
<img src="/p/assets/img/hero/install.png" alt="Capture d'écran de l'interface CLI de FWS Linux" loading="lazy" width="600" height="340" />
|
||||
<img src="/p/assets/img/hero/install.webp" alt="Capture d'écran de l'interface CLI de FWS Linux" loading="lazy" width="600" height="340" />
|
||||
</figure>
|
||||
</article>
|
||||
</section>
|
||||
|
||||