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

Reduce maps bundle size (code splitting) #64317

Closed
Tracked by #88678
mshustov opened this issue Apr 23, 2020 · 1 comment · Fixed by #64594
Closed
Tracked by #88678

Reduce maps bundle size (code splitting) #64317

mshustov opened this issue Apr 23, 2020 · 1 comment · Fixed by #64594
Assignees
Labels
[Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation performance v7.8.0 v8.0.0

Comments

@mshustov
Copy link
Contributor

maps.js bundle size is 4.8Mb at the moment

node scripts/build_kibana_platform_plugins.js --dist --no-examples --profile
ls -lh x-pack/plugins/maps/target/public/

This bundle is loaded eagerly whenever a user opens the Kibana app.
We could decrease the plugin size drastically if add code-splitting and lazy loading for the plugin. The most obvious candidate for optimization is to load the MapView component on-demand.
Related discussion #64179

@mshustov mshustov added performance [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation labels Apr 23, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@thomasneirynck thomasneirynck self-assigned this Apr 27, 2020
@lizozom lizozom changed the title Add code splitting to the maps plugin client bundle Reduce maps bundle size (code splitting) Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation performance v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants