Mediaelement AJAX fix

mgibbs189

{{gist file=”gistfile1.js” lang=”javascript”}}
<script>
(function($) {
$(document).on(‘facetwp-loaded’, function() {
if (FWP.loaded) {
$(‘.wp-audio-shortcode, .wp-video-shortcode’).mediaelementplayer();
}
});
})(jQuery);
</script>
{{/gist}}