soundnode-app
soundnode-app copied to clipboard
SCapiService.checkRateLimit causes entire track to download
I've noticed when playing long tracks that there is a noticeable lag time between when the track is clicked to play and when the track actually plays. On closer inspection, I see that the call to SCapiService.checkRateLimit within app/public/js/common/utilsService.js causes the whole track to be downloaded. I have since replaced the checkRateLimit function to only return an empty promise and the app works as it should (only faster). I am not familiar with the soundcloud api (or perhaps it recently changed), but I am not aware of any other way to check for a rate limit.