In my js I have created one Audio object, with which I play/pause several audio files.
I was wondering if and how I could preload the files present in the /audio folder without inserting any <audio> element in the HTML.
I tried <link rel="preload" href="/audio/file.mp3" as="audio"> but Chrome gives me this warning:
"link rel=preload must have a valid as value".
I also tried putting media (instead of audio) in the as attribute. Same warning.
What am I doing wrong?