Skip to content

Top-level loading state for initial pageload #1569

Closed

Description

@david-crespo

On initial pageload, we just show a blank screen while the loaders run.

2023-06-09-no-loading-state

We could show the loading bar we use for client-side navs, that would be something, but it would probably be better if we had a page-side skeleton state. The only problem there is that if we have a page in the console that does not have that layout (for example device auth or login), we would want a different skeleton state for those pages. For that reason, I think the skeleton state should be configured at the layout level. React Router makes this very easy, I think there's a fallbackElement (or something) right on the <Route>.

Activity

  1. changed the title [-]Top-level loading state[/-] [+]Top-level loading state for initial pageload[/+] on Jun 9, 2023
  2. added
    design
    on Mar 6, 2024
  3. david-crespo commented on Mar 6, 2024

    @david-crespo
    CollaboratorAuthor

    @benjaminleonard @paryhin curious if you have ideas on this. The main problem is that it can be a very quick flash, so some kind of skeleton might be smart.

  4. benjaminleonard commented on Mar 6, 2024

    @benjaminleonard
    Contributor

    I had this designed for the auth page that might work:

    image

  5. david-crespo commented on Mar 15, 2024

    @david-crespo
    CollaboratorAuthor

    I looked into this and it is non-trivial to figure out exactly why the screen is blank for that time — I think it's a combination of things — and therefore how to actually display the loading state during it.

    Side note, for some reason the blank screen feels longer on https://console-preview.oxide.computer/. Not sure what that's about.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    design

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions