wavesurfer.js: Bug: Browsers don't respect setting preload to "none" in wavesurfer.load()
Demo at http://codepen.io/anon/pen/QdVxbe
Preload is set to none:
wavesurfer.load('https://wavesurfer-js.org/example/split-channels/stereo.mp3', peaks, 'none');
But if you check in “developer tools” the file is clearly loading on page load before the file is played. The DOM shows preload="none" so it is adding the attrbitue.
I understand that preload="none" is only a suggestion to the browser but if I manually add the <audio> element to the page it respects it:
<audio controls preload="none" src="https://wavesurfer-js.org/example/split-channels/stereo.mp3">
Tested under Chrome 55.0.2883.87 and Firefox 51.0.1.
If you can give me an idea what might be causing this I’ll try to fix it.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (18 by maintainers)
@mspae FR created : https://github.com/katspaugh/wavesurfer.js/issues/1237 !