I have one j query script which run infinitely to check whether audio play or not. If audio play then it send how much portion of audio have played by user? I just want to know, will browser hang after some time due to continuous script running? if yes then what will be the best solution?
1 Answer
You should use the javascript setTimeout function to check every second or so otherwise you will surely cause a very slow or hanging response for the end user