• Was struggling with this. Think I came up with the solution:

    Via the usual inserting before in ajaxify.js $body.removeClass(‘loading’):

    cssNode = document.createElement('link');
    contentNode.appendChild(cssNode);
    cssNode.type = "text/css";
    cssNode.rel= "stylesheet";
    cssNode.href = rootUrl + 'wp-includes/js/mediaelement/mediaelementplayer.min.css?ver=2.13.0';
    
    cssNode = document.createElement('link');
    contentNode.appendChild(cssNode);
    cssNode.type = "text/css";
    cssNode.rel= "stylesheet";
    cssNode.href = rootUrl + 'wp-includes/js/mediaelement/wp-mediaelement.css?ver=3.9.1';
    
    scriptNode = document.createElement('script');
    contentNode.appendChild(scriptNode);
    scriptNode.setAttribute('src', rootUrl + 'wp-includes/js/mediaelement/wp-mediaelement.js?ver=3.9.1');
    
    scriptNode = document.createElement('script');
    contentNode.appendChild(scriptNode);
    scriptNode.setAttribute('src', rootUrl + 'wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=2.14.2');

    It seems to work, but I’m not sure if it’s the best way.

    If anyone can suggest another/better way, or if I messed something up, let me know.

    https://www.ads-software.com/plugins/ajaxify-wordpress-site/

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Working solution: AWS with WordPress 3.6 native audio’ is closed to new replies.