-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Lazy-load visualizations #58280
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
Pinging @elastic/kibana-app-arch (Team:AppArch) |
plugin bundle sizes in the master branch for a reference: All that code is loaded eagerly on Kibana bootstrap. other plugins owned by @elastic/kibana-app |
Closing this in favor of #46801. We're making all visualization renderers importing async during giving each their own renderer. Also most editors are already made async nowadays. |
With the new platform, soon all visualizations will be loaded for each page/app a user loads because registerings are ran in the setup phase and pull in the definition of a visulization which also contains the render logic. Currently there is no lazy dynamic import step in there to load the heavy part of visualizations only when actually required to render. Especially for visualization types like vega or timelion which rely on complete rendering libraries under the hood not used anywhere else, this can bloat the amount of Javascript evaluated when Kibana is loaded and slow down the startup.
Tasks:
The text was updated successfully, but these errors were encountered: