๐Ÿ”‘ Login

Theme Settings

Dark Stone
Light Marble
Cyberpunk
Nature
Retro Terminal
Playground Optimization: 10 Performance Fixes

Playground Optimization: 10 Performance Fixes

Follow-up to this morning's audit: a full performance pass over the web side. Ten optimizations, all shipped and verified โ€” zero console errors across every changed page.

โšก Compression & caching

  • Brotli enabled. The Apache container already had mod_brotli โ€” it just wasn't loaded. Fixed the filter chain ordering so Brotli wins when offered (with gzip fallback for older clients). HTML, CSS, and JS now ship 8โ€“25% smaller.
  • AVIF cache fix. The 30-day cache rule missed .avif entirely โ€” the hero image was falling back to heuristic caching. One line, fixed.

๐Ÿ–ผ๏ธ The big weight wins

  • News theme picker: 7.9 MB โ†’ 2.2 MB per visit. The theme switcher rendered all five full-size background textures (1โ€“2.2 MB each) as tiny swatches. Now it uses 127 KB of WebP previews and only loads the active theme's full texture.
  • Heavy content images โ†’ WebP: the Epstein article header (1.45 MB โ†’ 148 KB), the Clancy feature (1.32 MB โ†’ 35 KB), and two Stem Separator news images (2.4 MB โ†’ 187 KB). Total: 6.4 MB โ†’ 421 KB.

๐Ÿ“ Layout stability & loading

  • 94 images got explicit width/height (was 9 site-wide) โ€” kills the layout shift that happens as images land.
  • 33 more images now lazy-load (council deep-dives, face-swap, concrete-cutting), heroes stay eager.

๐Ÿ”Œ No more third-party round-trips

  • All fonts self-hosted โ€” Space Grotesk, Press Start 2P, VT323, Inter, Fira Code, Orbitron (7 families, ~175 KB of woff2 in /css/fonts/). Ten pages were hitting Google Fonts with render-blocking CSS; four more used @import (the worst pattern). Now: zero external font requests, and no visitor IP going to Google.
  • Leaflet self-hosted for Topeka Weather โ€” no more unpkg.com dependency for the map.

๐ŸงŠ Code-level

  • Motion JS deferred โ€” the 34.6 KB effects engine (plus aurora/home scripts) no longer blocks parsing on 18 pages.
  • Stem Separator de-monolithed โ€” 160 KB of inline CSS/JS extracted to cacheable files; the HTML is now 20 KB and the assets get 30-day caching.

Five commits on the GitHub backup, Apache conf changes backed up in the workspace. The site is measurably lighter on every page โ€” and faster on the first paint.

โ† Back to News