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

Load oauth javascript dependencies only when they are required #11421

Closed
MarcialRosales opened this issue Jun 10, 2024 · 0 comments
Closed

Load oauth javascript dependencies only when they are required #11421

MarcialRosales opened this issue Jun 10, 2024 · 0 comments

Comments

@MarcialRosales
Copy link
Contributor

MarcialRosales commented Jun 10, 2024

Is your feature request related to a problem? Please describe.

The management UI always load two javascript files only required when OAuth is enabled and required in the UI.
The two files are : js/oidc-oauth/helper.js and js/oidc-oauth/oidc-client-ts.js with a total of 119kbytes.

The management UI loads a third javascript file called js/oidc-oauth/bootstrap.js. But this is a javascript file generated by the management plugin which tells whether Oauth is enabled and required in the ui. Thus the management ui always need to load this file. When OAuth is disabled or not required in the ui, this file is very small, a few bytes long.

Describe the solution you'd like

Load the first two javascript files only when OAuth in enabled in the management ui

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants