angular-soundmanager2 icon indicating copy to clipboard operation
angular-soundmanager2 copied to clipboard

clear playlist takes too much time, let timeout be zero?

Open elprup opened this issue 8 years ago • 1 comments

First, thanks for your effort on this great library.
I notice when I try to remove all songs from playlist which including 40+ songs, it always takes a long time. In clearPlaylist I notice the function loop setTimeout is 100ms, which is too long for long list. I modify it to 0 and it works great. I don't check the code related, is it the good practice? Why the initial timeout is 100ms?

elprup avatar Mar 20 '16 05:03 elprup

@elprup By using your question for reference, I change the timeout to 10ms and 5ms. It works fine, much quicker than 100ms. So far, it does not lead to any problem.

NevenLeung avatar Sep 24 '17 11:09 NevenLeung