wavesurfer.js not working if jquery .load() use
I try use jQuery function .load() to refresh container with wave forms from wavesurfer.js and wavesurfer-WP plugin and if I call function .load(), then I get errors in console and waveforms not showing.
I have div container
#div witch waveforms in frontend and I use load method:
jQuery("#div").load(location.href + " #div");
I want make no refresh site.
Some have this problem and how I can fix this?