There is such a JavaScript:
$(document).ready(function(){ if ($('a.lesson-audio-play.active').length > 0) { // include jwPlayer if ($('script[src^="core/modules/jwplayer/jwplayer.js"]').length === 0) { var s = document.createElement('script'); s.src = 'core/modules/jwplayer/jwplayer.js'; // s.defer = 'defer'; Нужно ли это? $('head').append(s); } } }); How correct? it is desirable that the script be without delay, otherwise some functionality will not work. Or is it generally better to use async and why?