Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Use manual chunking to split large chunks #139

Merged
merged 2 commits into from
Jan 12, 2023

Conversation

VIKTORVAV99
Copy link
Member

@VIKTORVAV99 VIKTORVAV99 commented Jan 11, 2023

This should in theory increase the performance of the app by utilizing multiplexing in HTTP/2 and improve long term caching as zone, exchange, and map are split from the code chunks.

Copy link
Member

@madsnedergaard madsnedergaard left a comment

Choose a reason for hiding this comment

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

That's really cool, thanks @VIKTORVAV99 ! 🥳

@madsnedergaard madsnedergaard merged commit 02e3525 into electricitymaps:master Jan 12, 2023
@VIKTORVAV99 VIKTORVAV99 deleted the vik/manualChunks branch January 12, 2023 09:18
@VIKTORVAV99
Copy link
Member Author

I also played around with turf a little and it turns out that just adding @turf/helpers and switching the import lowers the bundle pre-gzip by something like around 300kb so I'll do that next. 😅

BTW, check you Slack DM 😉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants