Skip to content

Conversation

@mshustov
Copy link
Contributor

@mshustov mshustov commented Apr 29, 2020

Summary

Part of :

Loads VegaParser, VegaView, VegaMapView lazily.
Reduces the plugin bundle size from 4Mb to 3Mb.
It will be -2Mb after #64549
The last remaining big thing is the legacy maps included in the bundle due-to:

import { getKibanaMapFactoryProvider, IServiceSettings } from '../../maps_legacy/public';

For maintainers

@mshustov mshustov added chore performance Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// release_note:skip Skip the PR/issue when compiling release notes v7.8.0 labels Apr 29, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@mshustov mshustov changed the title lazy load React components + VegaParser Slim vis_type_vega js bundle Apr 29, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@mshustov mshustov marked this pull request as ready for review April 29, 2020 12:01
@mshustov mshustov requested review from a team and flash1293 April 29, 2020 12:02
Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

LGTM, only code review.

@mshustov mshustov merged commit 3442c25 into elastic:master Apr 30, 2020
@mshustov mshustov deleted the slim-vis_type_vega branch April 30, 2020 17:18
mshustov added a commit to mshustov/kibana that referenced this pull request Apr 30, 2020
mshustov added a commit that referenced this pull request May 1, 2020
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@Dosant Dosant mentioned this pull request May 11, 2020
@lizozom lizozom changed the title Slim vis_type_vega js bundle Reduce visTypeVega bundle size Apr 18, 2022
@lizozom lizozom changed the title Reduce visTypeVega bundle size Reduce visTypeVega bundle size Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore performance release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v7.8.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants