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

[security] Reduce page load bundle to under 100kB #95869

Closed
tylersmalley opened this issue Mar 30, 2021 · 2 comments · Fixed by #98819
Closed

[security] Reduce page load bundle to under 100kB #95869

tylersmalley opened this issue Mar 30, 2021 · 2 comments · Fixed by #98819
Assignees
Labels
Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!

Comments

@tylersmalley
Copy link
Contributor

For details, refer to the meta issue at #95853

The security plugin is currently 125,722 bytes. To consider this issue closed, the limits.yml should be updated with the value under 100000.

@tylersmalley tylersmalley added the Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! label Mar 30, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@tylersmalley tylersmalley changed the title [security] Reduce page load bundle to under 100k [security] Reduce page load bundle to under 100kb Mar 30, 2021
@tylersmalley tylersmalley changed the title [security] Reduce page load bundle to under 100kb [security] Reduce page load bundle to under 100kB Mar 30, 2021
@jportner
Copy link
Contributor

I attempted to address this pretty recently while I was cleaning up the Security plugin imports, but I wasn't able to move the needle during the timebox I'd set for myself, so I moved on to other tasks. I figured I'd leave a comment for whomever takes this on in the future while this is still fresh in my mind!

I've attached a snapshot of the security plugin build stats from the master branch today (HEAD: 0e40b94):
stats.json.zip

Command to generate plugin chunks and stats.json file:

node scripts/build_kibana_platform_plugins.js --dist --profile --focus=security
ls -lh x-pack/plugins/security/target/public

Using https://chrisbateman.github.io/webpack-visualizer/ to analyze it:

  • Our two biggest dependencies are broadcast-channel (23k) and url (14k), I'm not sure we can get rid of either of these
  • We have what appears to be a lot of static exports, too (33k):
    image

Other than that, we already use lazy-loading, and the security plugin is split into 19 chunks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants