Skip to content

account module lazy load

David Burke requested to merge david-account-module into dev

Performance changes

Measuring the load time of the web ext. 1.10 vs dev.

1.10 (old)

Average 405ms till chrome "onload event"

this MR (new)

Average 360ms till chrome "onload event"

With these results, it seems reducing main bundle size does in fact speed up the startup of the web extension (and presumably all other uses). Account is however a large module to remove from the bundle. I would not suspect this time of gain will be seen again by removing other modules.

TODO

  • Fix up NS app
  • Consider moving some more code to the main component for code cleanness. This will have no performance impact as webpack already correctly takes only the code it needs from /account in the main bundle.
Edited by David Burke

Merge request reports