🎵 JS Experts: help pre-loading multiple audio files

I’m building a breathing / meditation app that mas multiple audio queues to help users follow along with their eyes closed. For example, one for inhale, another for exhale and background music.

On desktop I have no problem just using howler. However, on mobile it seems it will only play the audio file that was loaded on a click action. I read through Stack Ex that you need to “preload” all your audios first on mobile to get multiple audio files to work.

Anyone with good js experience, could you help we write the JS I need to execute when the page loads to preload all my audios?

Thank you so much in advanced!

1 Like