From decacd7f90d432eb2b923e5af0195d482db7a272 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sat, 26 Apr 2014 15:24:47 +0200 Subject: [PATCH] add more debug comments around image loading --- js/map.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/map.js b/js/map.js index 024eaf4..b734113 100644 --- a/js/map.js +++ b/js/map.js @@ -125,13 +125,15 @@ function loadPrefs(aEvent) { document.getElementById("copyright").innerHTML = gMapStyles[gMap.activeMap].copyright; + console.log("Init loading tile..."); gLoadingTile = new Image(); - gLoadingTile.src = "style/loading.png"; gLoadingTile.onload = function() { - console.log("Loading Tile loaded."); + console.log("Loading tile loaded."); var throwEv = new CustomEvent("prefload-done"); gAction.dispatchEvent(throwEv); }; + console.log("Set loading tile..."); + gLoadingTile.src = "style/loading.png"; } } else { -- 2.43.0