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 `