D
D
dllweb2017-05-03 07:35:49
JavaScript
dllweb, 2017-05-03 07:35:49

Will a script run in an extension outside of tab focus?

Good afternoon, I'm interested in the question described in detail in the title, but still I'll explain it again.
I am interested in the question whether the script inside the extension will be executed which will interact with the current page on the tab - out of focus, that is, we will go or switch to another tab, will the extension script work there or stop, and what if, we will run the same script on second, the same tab, what happens?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-05-03
@dllweb

It will, there are certain subtleties in the work of timers in the background tabs of chrome , but in general everything will work.
If two identical tabs are open, they will work together and execute the same code.
You can use master slave mechanisms to organize the work of several tabs if you need to execute code on only one open tab.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question