diff --git a/public/js/playlist/playlist.js b/public/js/playlist/playlist.js index d5d1975ea..02e5934d6 100644 --- a/public/js/playlist/playlist.js +++ b/public/js/playlist/playlist.js @@ -29,8 +29,11 @@ function registerSongEndListener(func){ } function notifySongEndListener(){ - if (typeof songEndFunc == "function") - songEndFunc(); + if (typeof songEndFunc == "function"){ + //create a slight pause in execution to allow the browser + //to update the display. + setTimeout(songEndFunc, 50); + } } function getTrackInfo(song){