bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

COOPS-UI: investigate lazy loading / dynamic imports #1890

Open severinbeauvais opened 4 years ago

severinbeauvais commented 4 years ago

Description:

"Lazy loading" of app components should be investigated/implemented, so that only the minimal app loads initially, and the rest of the components can load when it known that a redirect is not forthcoming. If possibly, this should include dependencies (vendor packages), CSS, etc.

See: https://cli.vuejs.org/guide/html-and-static-assets.html#preload https://itnext.io/vue-js-app-performance-optimization-part-3-lazy-loading-vuex-modules-ed67cf555976

Also, "dynamic imports" may improve performance similary. See: https://webpack.js.org/guides/code-splitting/#dynamic-imports https://www.sitepoint.com/vue-async-components/

See also #1823 (vendor chunk size).

Dependencies Webpack configuration

Acceptance Criteria

  1. Web app loads correctly
  2. Web app loads faster than without lazy loading

Validation Rules None

Ready to Build (DoR):

Acceptance / DoD:

WaldemarSchneider86 commented 4 years ago

move from Sprint 19 "back" to Entity Product Backlog - from Sprint 19, as it was not done in Sprint 19. 2019-12-23

severinbeauvais commented 4 years ago

Changed to Priority 2 because what we have works OK.