V
V
Valery Gutin2018-05-26 09:56:12
Opera
Valery Gutin, 2018-05-26 09:56:12

Why don't sounds work on ajax request in opera?

I send a request to the database every 30 seconds through setinterval to check for new records, and if the record is found, I output the record and the sound of the notification.
When adding records - the sound appears only when the tab is active. What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2018-05-26
@alexey-m-ukolov

Browsers significantly slow down the execution of setInterval and setTimeout in inactive tabs. Most likely, this is the issue.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question