From: Robert Kaiser Date: Sat, 26 Apr 2014 13:24:47 +0000 (+0200) Subject: add more debug comments around image loading X-Git-Tag: producution~31 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=decacd7f90d432eb2b923e5af0195d482db7a272;p=lantea.git add more debug comments around image loading --- 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 {