Skip to content
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

Implement Code Splitting ⚡️ #588

Closed
6 tasks done
goenning opened this issue Oct 20, 2018 · 1 comment
Closed
6 tasks done

Implement Code Splitting ⚡️ #588

goenning opened this issue Oct 20, 2018 · 1 comment
Labels
hacktoberfest Issues for Hacktoberfest type: enhancement make something that is already working even better
Milestone

Comments

@goenning
Copy link
Member

goenning commented Oct 20, 2018

We currently bundle every JavaScript and CSS into their own single bundle. We have a vendor bundle because third party packages change way less often than our own code, so that's a problem solved.

The problem we have now is that a small change on a specific component results into a completely new bundle which has to be downloaded by all users.

We should really look into Code Splitting and how that can help us push smaller javascript files to users. We could also think about using optimization.splitChunks.

My idea is to split based on our Page Components that are described on router.tsx. Every Page Components would result into a separate bundle that is downloaded only when necessary.

Tasks:

Resources:

@goenning goenning added type: enhancement make something that is already working even better hacktoberfest Issues for Hacktoberfest labels Oct 20, 2018
@cfilby
Copy link
Contributor

cfilby commented Oct 20, 2018

I'll look into this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Issues for Hacktoberfest type: enhancement make something that is already working even better
Projects
None yet
Development

No branches or pull requests

2 participants