From 7ae742ca70c424e7f3e0c592deaf1316608dfb3e Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 22 Jan 2024 14:35:44 +0100 Subject: [PATCH] chore: add grey background to body on map page to prevent blinking Otherwise the DOM loads and create a white script before the JS is parsed and ready to display the map. This is due to using modules and scripts in defer mode. --- umap/static/umap/map.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index e34e1751..f36696bc 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -9,6 +9,11 @@ bottom: 0; left: 0; right: 0; + /* + * Same as leaflet background, to work around screen blincking + * between DOM is loaded and JS is read to render the map. + */ + background-color: #ddd; }