open-in-browser
open-in-browser copied to clipboard
Potential optimizations
There are several potential ways to optimize the perceived performance of the extension:
- [ ] Load the relatively large (76kb) mime-metadata.js in the background page and use the functions from background.js instead of dialog.js
- [ ] Consider replacing synchronous XHR in mime-metadata.js with alternatives, e.g. caching the result in the background page, or merging the translations with
_locales/*/messages.json - [x] Replace
localStoragewith alternatives (e.g.browser.storage?)
None of these affect the functionality, but the speed gain can add up to several dozens of milliseconds.