open-in-browser icon indicating copy to clipboard operation
open-in-browser copied to clipboard

Potential optimizations

Open Rob--W opened this issue 7 years ago • 0 comments

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 localStorage with alternatives (e.g. browser.storage?)

None of these affect the functionality, but the speed gain can add up to several dozens of milliseconds.

Rob--W avatar Nov 13 '17 12:11 Rob--W