illogical-robot / toolbox-for-google-play-store-public

Toolbox for Google Play Store™ bugs and suggestions
110 stars 43 forks source link

Consider using event pages instead of a persistently-running background page #11

Closed ngyikp closed 6 years ago

ngyikp commented 7 years ago

Currently, the extension uses a background page to load settings and constantly runs in the background eating RAM even if the user doesn't have any Play Store tabs open.

The quick fix is to add "persistent": false in manifest.json

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

A better way is to use chrome.storage so that a background page is never needed, though migrating old localStorage to the new chrome.storage might be a little tricky.

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

archon810 commented 6 years ago

@corbindavenport I believe v2.0 has switched to these, right?

corbindavenport commented 6 years ago

Correct.