#Is there a way to add preload="none" to audio tags

3 messages · Page 1 of 1 (latest)

molten turtle
#

[[File:sound.ogg]] is converted into an audio tag, but is there a way to add the preload="none" attribute without editing the JavaScript?

summer chasm
#

doubt tbh
my wiki uses a script, it's not that big and I took it from another, independent wiki

molten turtle
#

ah, I tried JavaScript, but the sound was loaded in the brief moment before the .js file was applied.
Since the goal is to reduce data usage, this result is not sufficient.

    audio.setAttribute('preload', 'none');
});```