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

Look into tree shaking with the component folder #1059

Closed
wenche opened this issue May 4, 2022 · 1 comment
Closed

Look into tree shaking with the component folder #1059

wenche opened this issue May 4, 2022 · 1 comment
Assignees
Labels
🕵️‍♀️ investigation This is more about investigation than doing 🛠 technical Technical stuffs like reducing debt, refactor or improve code base

Comments

@wenche
Copy link
Contributor

wenche commented May 4, 2022

With next build we see that the First Load JS shared by all is pretty big, 173kB at the moment of writing. By analysing the client side bundle, it seems like every component from the component folder is added to the bundle. This might be because of missing tree shaking with the barrel file approach in the component folder. Also possible related.

We should look into this and see if there's room for improvements.

Skjermbilde 2022-05-04 kl. 09.32.03.png

Skjermbilde 2022-05-04 kl. 08.27.27.png

@wenche wenche added 🕵️‍♀️ investigation This is more about investigation than doing 🛠 technical Technical stuffs like reducing debt, refactor or improve code base labels May 4, 2022
@nilsml
Copy link
Contributor

nilsml commented Sep 20, 2023

Related to #1878

@BorghildSelle BorghildSelle self-assigned this Feb 5, 2024
BorghildSelle added a commit that referenced this issue Feb 13, 2024
* 🎨 Improve performance

* 🎨 set prefetch false on more links

* 🎨 Remove console log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕵️‍♀️ investigation This is more about investigation than doing 🛠 technical Technical stuffs like reducing debt, refactor or improve code base
Projects
None yet
Development

No branches or pull requests

3 participants