viewer
viewer copied to clipboard
Performance optimization
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
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
This thread might be helpful: https://twitter.com/dan_abramov/status/1529677207869825024