fix: cache-busting CSS URL + named function init for map/charts
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 14s
Deploy Internet for Kids / Deploy (push) Successful in 5s
Deploy Internet for Kids / Health Check (push) Successful in 1s
Deploy Internet for Kids / Smoke Tests (push) Successful in 2s
Deploy Internet for Kids / IndexNow Ping (push) Successful in 7s
Deploy Internet for Kids / Promote to Latest (push) Successful in 2s
Deploy Internet for Kids / Rollback (push) Has been skipped
Deploy Internet for Kids / Audit (push) Successful in 1s

CSS link now includes ?v=timestamp to bust browser cache.
Map/charts use named functions instead of IIFEs (minifier safe).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-04-03 15:25:11 +03:00
parent 9a86cf6383
commit da29dbc8bc
3 changed files with 9 additions and 7 deletions

View File

@@ -34,9 +34,9 @@
<script src="{{ "js/maplibre-gl.min.js" | relURL }}"></script>
<script src="{{ "js/topojson-client.min.js" | relURL }}"></script>
<script>
(function initMap() {
function ifkInitMap() {
if (typeof maplibregl === 'undefined' || typeof topojson === 'undefined') {
setTimeout(initMap, 100);
setTimeout(ifkInitMap, 100);
return;
}
var LANG = "{{ $lang }}";
@@ -127,5 +127,6 @@
});
});
});
})();
}
ifkInitMap();
</script>