-
Notifications
You must be signed in to change notification settings - Fork 12
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
refactor(extension): set background script as non persistent and remove html template #570
base: update-manifest-v3
Are you sure you want to change the base?
Conversation
Looks fine. ^^ |
Nice catch ! But what about our periodic refreshs ? Shouldn’t we set an Also, it seems non-persistent background is not supported by Firefox yet :-(
|
@JalilArfaoui could you point me to the problematic lines? |
In src/app/background/sagas/refreshMatchingContexts.ts and src/app/background/sagas/refreshContributors.ts for instance, we have : while (true) {
yield delay(refreshInterval);
yield call(refreshMatchingContexts);
} which I guess is implemented by |
We may have the same issue in src/app/background/sagas/lib/sendToTab.saga.ts … |
Alright, nice catch, I'll look into it... |
Well, let's forget about that for the time being, it's not that trival, and it need a new Notes: |
Yep … Maybe for the coming refactor/clean phase … |
@lutangar should we close this one ? |
I think this would bring a significant performance boost (memory footprint) and might be easier on the cpu as well so I'd like to put this light. I'll might add a connected issue. |
59d03aa
to
5d37d99
Compare
After some more investigation, switching to alarm might not be useful as in manifest v3 the background persistence thing seems to be deprecated... there might still be performant boost to take from switching to the alarms API tho. This PR is still a WIP it'll require a bit more work to add some kind of alarm registry to make the onAlarm eventListener able to handle all alarms... |
86cd64e
to
0c0dd93
Compare
…ve html template background script do not use any persistent background feature, this was a legacy thing, this will definitely be a big take on performance improvement https://developer.chrome.com/extensions/background_migration chore(manifest): fix
chore(manifest): fix
0c0dd93
to
9944748
Compare
background script do not use any persistent background feature, this was a legacy thing, this will definitely be a big take on performance improvement
https://developer.chrome.com/extensions/background_migration