Skip to content

Commit e37bcb7

Browse files
authored
remove excess wait
1 parent fab0a6b commit e37bcb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/custom-quiz.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ function loadFromJSON(url) {
277277
setTimeout(function(){
278278
addTitleAndDescription()
279279
document.getElementsByClassName("labeled-map")[0].innerHTML = `<img id="main_map" hidden="true" src="/images/maps/${imgUrlLabeled}.png" onload="mapLoaded()">`
280-
}, 300);
280+
}, 0);
281281
// mapLoaded() // img does it instead
282282
})
283283

js/quiz.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function loadFromJSON(url) {
237237
// let imageURL = "/images/maps/" + quizName + ".png"
238238
setTimeout(function(){
239239
document.getElementById("cool-image").innerHTML = '<img id="main_map" hidden="true" src="' + imageURL + '" alt="" usemap="#map-area" class="map" onload="mapLoaded()"/>'
240-
}, 300);
240+
}, 0);
241241
})
242242

243243
.fail(function() {

0 commit comments

Comments
 (0)