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

[Lens] Avoid additional chunk load during dashboard load time #143345

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

flash1293
Copy link
Contributor

@flash1293 flash1293 commented Oct 14, 2022

In #142938, to optimize the page load bundle size a new async chunk was introduced. However, this chunk was loaded separately as part of dashboard loading which slowed down the time to a finished rendered chart a bit.

This PR avoid the additional chunk by moving the exports into the central async_services module so it's loaded together with the bulk of the Lens functionality once on startup, while preserving the page load size gains

@flash1293 flash1293 added Team:Visualizations Visualization editors, elastic-charts and infrastructure release_note:skip Skip the PR/issue when compiling release notes Feature:Lens backport:skip This commit does not require backporting labels Oct 14, 2022
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 1.3MB 1.3MB -1.5KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
lens 29.1KB 29.1KB +8.0B
Unknown metric groups

async chunk count

id before after diff
lens 16 14 -2

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

@flash1293 flash1293 marked this pull request as ready for review October 14, 2022 12:59
@flash1293 flash1293 requested a review from a team as a code owner October 14, 2022 12:59
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

We have already discussed about this offline! LGTM!

@flash1293 flash1293 merged commit 2cf6b00 into elastic:main Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants