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

perf(manual-chunking): Remove country-flag-icons from manual chunking #6857

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

VIKTORVAV99
Copy link
Member

Description

Since this is now only imported into the Flag component we no longer need to add it as a manual chunk, this improve performance by budding it directly where it's used (together with the Flag component) and removes a lot of import links that was included in half the bundles for some reason.

Should yield a very minor performance boost when it comes to http downloads and first visits to the app.

Double check

  • I have run pnpx prettier@2 --write . and poetry run format in the top level directory to format my changes.

Copy link
Contributor

@silkeholmebonnen silkeholmebonnen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Can we somehow test if the performance actually is increased?

@VIKTORVAV99
Copy link
Member Author

Looks good. Can we somehow test if the performance actually is increased?

The performance increase itself is so small it's not really measurable with all other variations that exists but I manually verified the size changes and the import links and they look much nicer now.

Copy link
Contributor

@silkeholmebonnen silkeholmebonnen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good ⭐

@VIKTORVAV99 VIKTORVAV99 enabled auto-merge (squash) June 19, 2024 06:59
@VIKTORVAV99 VIKTORVAV99 merged commit b58eb90 into master Jun 19, 2024
21 checks passed
@VIKTORVAV99 VIKTORVAV99 deleted the vik/tweak_manual_chunking branch June 19, 2024 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants