# 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 `