Skip to content

Login page has unnecessary requests and slow first render #712

Description

@shuans

Problem

The login page has a noticeable initial loading delay. Before authentication, the frontend appears to initialize parts of the authenticated application and request protected configuration endpoints, which can return 401 Unauthorized.

The login page also waits for additional configuration and language injection requests before rendering, creating a visible loading delay.

Possible direction

  • Separate unauthenticated bootstrap from authenticated application initialization.
  • Avoid loading menu, resource metadata, and protected configuration before login.
  • Merge public config, login form config, and login language metadata into one lightweight endpoint.
  • Render the basic login form immediately, then load optional plugins and background assets asynchronously.
  • Ensure production startup does not trigger development bundling or hot-reload initialization.

This should reduce the login request waterfall and improve first contentful render, especially on slower networks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions