diff --git a/frontend/src/components/Preload/Preload.jsx b/frontend/src/components/Preload/Preload.jsx index ace85f153..5241469f9 100644 --- a/frontend/src/components/Preload/Preload.jsx +++ b/frontend/src/components/Preload/Preload.jsx @@ -54,12 +54,14 @@ const Preload = ({ sections, playMethod, duration, preloadMessage, pageTitle, on webAudio.closeWebAudio(); } // Load audio until available - // Return remove listener - return audio.loadUntilAvailable(section.url, () => { - if (index === (sections.length - 1)) { - setAudioAvailable(true); - } - }); + // Return remove listener + sections.forEach((section, index) => { + return audio.loadUntilAvailable(section.url, () => { + if (index === (sections.length - 1)) { + setAudioAvailable(true); + } + }); + }) } }