HifiPlanet-Website/hifi-src/src/context
Maaxxs ec84b438ca PageSpeed/Lighthouse fixes: caching, images, touch targets, console noise
Based on a Lighthouse audit of the live site (95 performance / 91
accessibility / 96 best-practices / 100 SEO), addressing everything
except the flagged color-contrast issues (kept as-is, reversible
color changes need a separate decision):

- Cache-Control headers for hashed/immutable static assets via
  mod_headers (no mod_expires dependency, since that's not enabled
  everywhere) - ~1.1MB saved on repeat visits
- Converted the code-bundled homepage photos to WebP (skipped
  DB-managed/admin-uploaded images - those are content, not code) and
  added explicit width/height so the browser can reserve space before
  images load
- Bumped footer/contact-sidebar phone and email links to a 24px+
  touch target via padding
- /auth/me now returns 200 + {authenticated:false} instead of 401 for
  logged-out visitors - it's called on every public page load to
  check session state, so "not logged in" is the normal case, not an
  error; the 401 was showing up as a console error on literally every
  page view

Left unchanged: the lucide-react bundle splitting (a previous,
deliberate tradeoff - splitting per-icon created ~1600 tiny chunk
files that failed to upload on shared hosting) and video preload
(no concrete issue found in the audit).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-07 02:40:57 +02:00
..
AuthContext.jsx PageSpeed/Lighthouse fixes: caching, images, touch targets, console noise 2026-07-07 02:40:57 +02:00
CookieConsentContext.jsx Add Google Analytics integration with consent-gated loading 2026-07-07 01:32:44 +02:00
LanguageContext.jsx Add German/English language toggle for the storefront 2026-07-06 21:51:32 +02:00
MaintenanceContext.jsx Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
SiteSettingsContext.jsx Add Google Analytics integration with consent-gated loading 2026-07-07 01:32:44 +02:00
ThemeContext.jsx Default to dark mode outside 6:30-21:00 based on the visitor's clock 2026-07-07 02:17:48 +02:00