How can I load only waveform and wait to user click 'play' to download the audio on Wavesurfer-js?
问题 On my server I use Audiowaveform to generate JSON data from my audio files. On frontend I use Wavesurfer-JS to draw the waveform based on previous JSON data. The problem is that on page ready the Wavesurfer-JS download on background the audio file all the time (and not only when the user hit the play button). This is my try. This is the salient part: <div id="waveform"> <audio id="song" style="display: none" preload="false" src="http://api.soundcloud.com/tracks/45398925/stream?client_id