From dc01d943f3bbd10b720f6844814ea2bac45d3787 Mon Sep 17 00:00:00 2001 From: Mischa Date: Mon, 22 Jun 2026 22:43:53 +0200 Subject: [PATCH] docs: add asset pipeline and frontend reliability design spec Covers esbuild via Docker, self-hosted CDN deps and fonts, JS deduplication strategy, Grav-idiomatic output structure, and template changes for trip.html.twig. Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr --- .../specs/2026-06-22-asset-pipeline-design.md | 225 ++++++++++++++++++ 1 file changed, 225 insertions(+) create mode 100644 docs/working/specs/2026-06-22-asset-pipeline-design.md diff --git a/docs/working/specs/2026-06-22-asset-pipeline-design.md b/docs/working/specs/2026-06-22-asset-pipeline-design.md new file mode 100644 index 0000000..bd66a96 --- /dev/null +++ b/docs/working/specs/2026-06-22-asset-pipeline-design.md @@ -0,0 +1,225 @@ +# Asset Pipeline & Frontend Reliability Design + +**Date:** 2026-06-22 +**Status:** Approved for implementation + +## Problem + +The theme's frontend has three compounding reliability risks: + +1. **CDN dependency** — MapLibre GL, PhotoSwipe, Scrollama, toGeoJSON, and Google Fonts all load from external CDNs. A CDN outage or rate-limit takes the site down visually. +2. **Duplicated JS logic** — The same behaviour is copy-pasted across multiple templates. Changing anything means finding and editing every copy. +3. **No central loading strategy** — CDN `