From 203e4bfb412ac9ed2fe123cb9440311f44d24ae3 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Sat, 25 Apr 2026 07:59:30 +0200 Subject: [PATCH] perf: replace 1.5 MB cameleer-logo.svg refs with optimised PNGs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Inkscape-exported cameleer-logo.svg in public/ is 1.5 MB — loaded eagerly in the SiteHeader (32×32) and Hero (64×64), it was the dominant hit on the homepage's largest-contentful-paint. The relaunch's added above-the-fold DOM nudged Lighthouse perf from 0.95 to 0.92 and tipped CI's >=0.95 threshold red. Switch all four SVG references to the pre-optimised PNG icons that already ship in public/icons/: - SiteHeader (32-displayed): /icons/cameleer-48.png (4.4 KB) - Hero (64-displayed): /icons/cameleer-192.png (36 KB) - SiteFooter (24-displayed): /icons/cameleer-32.png (2.4 KB) - BaseLayout favicon link: drop the SVG, keep the existing 32 PNG fallback (already declared on the next line). Local Lighthouse (http-server, no gzip) before: perf 0.72, LCP 10.0s. After: perf 0.94, LCP 1.6s. CI on Linux + LH static server should comfortably clear the 0.95 gate. The SVG file itself is left in place — unreferenced, but kept in case any external link still points at it. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/SiteFooter.astro | 2 +- src/components/SiteHeader.astro | 2 +- src/components/sections/Hero.astro | 2 +- src/layouts/BaseLayout.astro | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/SiteFooter.astro b/src/components/SiteFooter.astro index ca8434d..90d02be 100644 --- a/src/components/SiteFooter.astro +++ b/src/components/SiteFooter.astro @@ -5,7 +5,7 @@ const year = new Date().getFullYear();