-
Notifications
You must be signed in to change notification settings - Fork 96
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
Code splitting by route - Closes #519 #678
Conversation
Initial load page size reduced from 4.4 MB [0] to 3.4 MB [1], that's a good chunk of data 👍 . Just some unit tests need to be updated. [0] https://tools.pingdom.com/#!/c1Tls4/https://jenkins.lisk.io/test/lisk-hub/development/ |
d6cc5f5
to
f06cbc1
Compare
c449a33
to
835dcfa
Compare
@slaweet rebased |
835dcfa
to
41cccb0
Compare
@slaweet is this still relevant if Lisk Hub now will be only shipped as a desktop app? |
@alepop IMO it's not relevant anymore. I'll close it now. We can always reopen the pr if the situation changes. |
What was the problem?
We have a big Lisk Hub js bundle that load all components for different routes
How did I fix it?
Created
asyncComponent
that allows import component only then it needed.How to test it?
Before code splitting:
After:
Review checklist