1

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 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.