viewer icon indicating copy to clipboard operation
viewer copied to clipboard

Performance optimization

Open kckst8 opened this issue 3 years ago • 2 comments
trafficstars

In the Viewer code and/or core

  • [ ] code-splitting / lazy loading (even if it requires breaking changes in core)
  • [ ] general code optimization
  • [ ] move operations to async (overuse of await)
  • [ ] offload to web workers
  • [ ] UX improvements (masking, etc)

everything is on the table

https://developers.google.com/web/tools/lighthouse

kckst8 avatar Mar 04 '22 19:03 kckst8

take a look at what @GerardasB did to help with code splitting using lazy/suspense + prefetching: https://github.com/iTwin/itwin-editor-test-app/blob/9147c5f2a0798add7699246edfed109cf048ecc8/editor-test-app/src/frontend/Routes.tsx#L19. We should be able to use some of this, at least in the desktop template that has routes

kckst8 avatar May 06 '22 13:05 kckst8

This thread might be helpful: https://twitter.com/dan_abramov/status/1529677207869825024

aruniverse avatar May 27 '22 14:05 aruniverse