summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html12
-rw-r--r--main.js2
2 files changed, 7 insertions, 7 deletions
diff --git a/index.html b/index.html
index 20d07b9..ccd16f1 100644
--- a/index.html
+++ b/index.html
@@ -18,13 +18,13 @@
<audio id="music-cribwhistling" src="sounds/music/cribwhistling.mp3"></audio>
<audio id="music-swish" src="sounds/music/swish.mp3"></audio>
<audio id="music-aeroplane" src="sounds/music/aeroplane.mp3"></audio>
- <audio id="sfx-resource" src="sounds/sfx/gui-beep/33776__jobro__1-beep-b.wav"></audio>
- <audio id="sfx-done" src="sounds/sfx/gui-beep/33787__jobro__5-beep-a.wav"></audio>
- <audio id="sfx-wrong" src="sounds/sfx/gui-beep/33789__jobro__5-beep-c.wav"></audio>
- <audio id="sfx-buttonenter" src="sounds/sfx/gui-beep/33777__jobro__1-beep-c.wav"></audio>
- <audio id="sfx-buttonclick" src="sounds/sfx/gui-beep/33780__jobro__2-beep-c.wav"></audio>
- <audio id="sfx-listappear" src="sounds/sfx/gui-beep/33775__jobro__1-beep-a.wav"></audio>
+ <audio preload="auto" id="sfx-resource" src="sounds/sfx/gui-beep/33776__jobro__1-beep-b.wav"></audio>
+ <audio preload="auto" id="sfx-done" src="sounds/sfx/gui-beep/33787__jobro__5-beep-a.wav"></audio>
+ <audio preload="auto" id="sfx-wrong" src="sounds/sfx/gui-beep/33789__jobro__5-beep-c.wav"></audio>
+ <audio preload="auto" id="sfx-buttonenter" src="sounds/sfx/gui-beep/33777__jobro__1-beep-c.wav"></audio>
+ <audio preload="auto" id="sfx-buttonclick" src="sounds/sfx/gui-beep/33780__jobro__2-beep-c.wav"></audio>
+ <audio preload="auto" id="sfx-listappear" src="sounds/sfx/gui-beep/33775__jobro__1-beep-a.wav"></audio>
<div id="root"></div>
<div id="overlay"></div>
diff --git a/main.js b/main.js
index 4ec64dc..44a0fe3 100644
--- a/main.js
+++ b/main.js
@@ -76,7 +76,7 @@ window.onload = () => setTimeout(() => {
Promise.all([...Object.values(sfx)].map(x => new Promise(resolve => {
x.load();
- x.addEventListener('canplaythrough', resolve);
+ x.addEventListener('canplaythrough', resolve, false);
}))).then(
() => setupLevelSelectUi(root, sfx)
);