I am working on a firefox addon. Everything works well when I am on the tab on which the add-on content script is running. But as soon as I switch tab, the content script slows down.
A similar problem is reported in the following questions
- How can I make setInterval also work when a tab is inactive in Chrome?
- Chrome: timeouts/interval suspended in background tabs?
- How to prevent chrome extension content script pausing when switching tab
I tried using a webworker as explained in the answer. However, webworked API doesn’t seem to work for add-ons.
Following pages indicate that web-worker is not supported for firefox addon
Is there any reliable way to make setInterval work in content-script when the tab is not active?
go to Options->Home->Firefox Home Content-> take it webSearch and TopSite .These help speed firefox
enter image description here