PharmaLedger-IMI / ctr-workspace

UC8 Clinical Trials Recruitment
MIT License
2 stars 0 forks source link

patient-ssapp v0.10.16 loading time optimization #86

Open joaoluis-pdm opened 2 years ago

joaoluis-pdm commented 2 years ago

When the round-trip deplay to the server is high, it takes a long time to load all files for PWA installation. (See https://github.com/PharmaLedger-IMI/ctr-workspace/issues/68#issuecomment-1003036579

... 1m38 seconds until the question to install the PWA ... ...using a throttled proxy ngrok.io (at 40 req per minute) it took +/- 45 seconds to open the dashboard (without DB initialization), but it took + than 5 min to finish doing HTTPS GET requests. This was on a v0.10.8 candidate with sw=false+pwa=true...

Could there be a way to optimize this ?

Currently, the ionic framework also contributes with a large number of files. See folder ctr-patient/patient-ssapp/node_modules/@ionic/core/dist/ionic 1489 files (154 top level files)

This seems to be a known problem: https://forum.ionicframework.com/t/ionic-4-build-output-why-so-many-files/152317/8

There seems to be no way to reduce this number of files, but the impact on startup performance should already be mitigated, as ionic is supposed to be doing lazy loading.