lukas-kratochvil / mafil-proband-safety-questionnaire

MAFIL - Proband Safety Questionnaire
https://mafil-proband-safety-questionnaire.vercel.app
The Unlicense
2 stars 0 forks source link

Improve frontend code bundling #18

Closed lukas-kratochvil closed 1 month ago

lukas-kratochvil commented 5 months ago

Decompose the frontend code into multiple lazy loaded components to prevent the browser from loading large chunks of JS files and delay the page load.

Also do not load DEV modules - for example: dev functions replacing MAFILDB API calls, dev dummy data etc.

lukas-kratochvil commented 3 months ago

MUI bundling guide: https://mui.com/material-ui/guides/minimizing-bundle-size/