Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use persistent background pages #221

Merged
merged 1 commit into from
Jul 28, 2020
Merged

Use persistent background pages #221

merged 1 commit into from
Jul 28, 2020

Conversation

notlmn
Copy link
Collaborator

@notlmn notlmn commented Jul 7, 2020

On Chrome we had this long standing issue where the extension goes offline until you click on the extension icon (#132) or trigger background pages some other way. In some cases it goes completely unresponsive despite clicking on the extension icon (#220).

We haven't had similar issues on Firefox, which does not (yet) support non-persistent background pages, i.e., the background page stays loaded all the time.

https://developer.chrome.com/extensions/background_pages

Chrome suggests not to have resource intensive tasks in background pages, but all we have in background pages is an alarm, and a couple of network requests, so this should not be a problem.

I'm hoping changing to the same persistent model as Firefox on Chrome should fix issues mentioned above.

/cc @fregante and @sindresorhus for opinions.

@notlmn notlmn requested a review from sindresorhus July 7, 2020 12:50
@sindresorhus
Copy link
Owner

Yeah, let's try it out.

@notlmn notlmn merged commit 5481212 into master Jul 28, 2020
@notlmn notlmn deleted the persistent branch July 28, 2020 11:14
@fregante
Copy link
Contributor

Did it fix it? The issue is still open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants