It might be a bit confusing. What I would like to achieve is to have my application work with just one .html file. Ofc, JS scripts and CSS I can easily put in there, no problem.
The only thing that holds be back is the one tiny sound file, that I'm currently streaming from the internet. However it won't work, when there's no internet connection.
const notificationSound = new Audio("https://notificationsounds.com/storage/sounds/file-sounds-1142-inflicted.mp3");
(...)
if(soundOn){ notificationSound.play();}
I would like to include the raw data of the sound file in the .html file and then play it back. Is there a way to make it work?