-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance: Reduce the initial js bundle size #819
Conversation
Azure Static Web Apps: Your stage site is ready! Visit it here: https://orange-rock-0d4f87503-819.westeurope.azurestaticapps.net |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est super, le temps de chargement est beaucoup plus court et l'image d'attente est très sympa et permettra de faire comprendre aux utilisateurs avec une connexion limité que des choses sont en cours de chargement
Merci !
Yes there is something to change ! I can handle this part when the PR is merged. I will review your code later, thank you very much for your work. |
0764df3
to
1d9a567
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://orange-rock-0d4f87503-819.westeurope.azurestaticapps.net |
1d9a567
to
ee87359
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://orange-rock-0d4f87503-819.westeurope.azurestaticapps.net |
ee87359
to
39e63f2
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://orange-rock-0d4f87503-819.westeurope.azurestaticapps.net |
39e63f2
to
7d40b66
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://orange-rock-0d4f87503-819.westeurope.azurestaticapps.net |
By making use of react code splitting and removing barely used heavy libraries
Also adds a loader while the application is loading (#445)
Current size 4.5Mo
Major changes:
New initial bundle size 1.68Mo
Each locale strings are now loaded dynamically when the user switch. For performance the fetching of the initial locale strings starts directly from the html page.
All the locale strings file have been moved to the
public
folder, is there also configurations to change for the transifex bot ?To analyse the bundle I use the following commands:
Current bundle + New bundle + Loader preview:
preview.zip