Skip to content

Refine the Site Editor loading state #35503

Closed

Description

@jameskoster

Here's the current experience loading the site editor:

loading.mp4

A couple of issues to address:

  • The FOWPA (Flash of wp-admin) is awkward. Can we hide it?
  • The light grey background feels a bit broken. Can we use the dark grey background from the template editor, and isolated template part editor? Use a dark background for the site editor #35520
  • The "Loading..." label in the top bar is easily missed. Something on the canvas would be more obvious.

Activity

  1. added
    Needs Design
    [Feature] Site Editor
    on Oct 11, 2021
  2. mtias commented on Oct 12, 2021

    @mtias
    Member

    Also the way different template parts can load at different times can be disorienting. I think we should consider loading everything before showing anything so that there are no jumps. Maybe also treat the gray as an overlay so we render in the background and then fade it out.

  3. talldan commented on Oct 28, 2021

    @talldan
    Contributor

    I created an issue for discussing the preloading of site editor content over here: #35942

    That would get rid of the disorienting nature of loading the editor. It might not be a quick win for 5.9, but could be something to consider in the longer term.

  4. jameskoster commented on Nov 8, 2021

    @jameskoster
    ContributorAuthor

    I worked on a few full-screen loading graphics here and assembled my favorites in to some prototypes that demonstrate the full flow here.

  5. added
    Needs Design Feedback
    and removed
    Needs Design
    on Nov 8, 2021
  6. shaunandrews commented on Nov 8, 2021

    @shaunandrews
    Contributor

    I like the simplicity of the "Indeterminate bar" option, and I think it would work really well with Matías' suggestion of loading the pieces in bit-by-bit with an overlay.

    There's something off about the geometry of the "Layout" options; I think it has to do with the border radii and line-widths being different from the Gutenberg icon language. Perhaps it could work better if it felt more like a large icon, rather than its own thing.

    --

    I think there's an important bit to consider in this design: How does this handle things when it never actually loads for some reason?

  7. jameskoster commented on Nov 8, 2021

    @jameskoster
    ContributorAuthor

    I suppose it depends on what exactly doesn't load. Hypothetical scenarios:

    • Nothing loading at all – total timeout
    • Editor chrome (top bar, breadcrumbs, etc) loads – but nothing else
    • Editor chrome + template loads, but template part(s) fail

    I'm not sure how likely each of these are, or if I'm missing any?

    Doesn't seem like there's much we could do in the first scenario. For the others, a modal / placeholder with "Try again" action might work?

    failure.to.load.mp4
  8. mtias commented on Nov 18, 2021

    @mtias
    Member

    @youknowriad and I discussed a broader issue of patterns and templates loading in stages that we should aim to address holistically. The end goal should be that things load like a "screenshot"; all fully loaded when you start interacting.

  9. shaunandrews commented on Nov 19, 2021

    @shaunandrews
    Contributor

    The end goal should be that things load like a "screenshot"; all fully loaded when you start interacting.

    Not sure I know what this means... are you suggesting something like progressive loading, where things are loaded as a low-resolutions (literally and figuratively) at first, and detail is added over time until complete?

  10. mtias commented on Nov 19, 2021

    @mtias
    Member

    Sorry, I mean render the final state and don't show tearing (in progress, half-rendered states). Wait until everything is loaded.

  11. jameskoster commented on Jan 26, 2022

    @jameskoster
    ContributorAuthor

    If we're able to determine how many things there are to load, and the status of each one, we could perhaps display a determinate loading indicator. Something like:

    loader.mp4

    We may want to embellish it with a logo, or some accompanying text, but I kind of like the simplicity of the bar on its own.

    Errors could be handled like so (with a better error message, obviously :)):

    loader-error.mp4
  12. added
    [Priority] High
    on May 23, 2022
  13. mtias commented on May 23, 2022

    @mtias
    Member

    @youknowriad @jsnajdr I believe the work on suspense at the data layer is in a place that can unlock working on this?

  14. 18 remaining items

  15. tyxla commented on Jan 31, 2023

    @tyxla
    Member

    I've been working on another version of the experiment today:

    #47612

    Here I tried another approach, which I'm hoping to be better and more flexible in terms of us being able to declare the dependencies for each suspense boundary.

  16. talldan commented on Feb 2, 2023

    @talldan
    Contributor

    It seems like the post editor also needs some work now, possibly since the iframe was introduced:

    Kapture.2023-02-02.at.11.56.57.mp4

    It might be a different problem though, it's more likely that the styles in the iframe are not ready immediately, and that's causing a flash of unstyled content.

    I can make a separate issue if you think that's best.

  17. tyxla commented on Feb 2, 2023

    @tyxla
    Member

    If you ask me, this is worth a separate issue. Not only that it's in the post content, but it might be solved with a different approach - for example by waiting for the iframe to fully load before showing it.

  18. talldan commented on Feb 3, 2023

    @talldan
    Contributor

    I've made an issue for it - #47724.

  19. annezazu commented on Feb 8, 2023

    @annezazu
    Contributor

    As WordPress 6.2 gets underway, I wanted to quickly offer a recap of the work that's been done on this issue and why it remains open for now.

    Finally, an additional PR is underway-Site Editor: Improve loading experience. For WordPress 6.2, meaningful progress in this area has been made where there's enough confidence to move forward with removing the beta label. Improving the loading state, similar to areas like performance, are iterative and continual in many ways. As a result, this issue is remaining open since there is more that can be done with access to various APIs after the React 18 upgrade that can smooth the experience even more in an iterative manner for the next major WordPress release.

  20. tyxla commented on Feb 9, 2023

    @tyxla
    Member

    Thanks for the recap, @annezazu 👍 More experimentation will come in this area in the following weeks, likely in the form of new PRs, as suggested here for example. Will keep everyone posted. We'll find a good way to improve the loading experience for everyone 👍

  21. moved this from 📥 Todo to 🦵 Punted to 6.3 in WordPress 6.2 Editor Taskson Feb 23, 2023
  22. annezazu commented on Apr 17, 2023

    @annezazu
    Contributor

    👋🏼 Checking in here to see if this experimental PR is still active and where work stands for the overall refining the site editor loading experience as it's been two months since the last update for 6.2 related items. I want to make sure I'm not missing anything in the phase 2 monthly updates :)

  23. tyxla commented on Apr 20, 2023

    @tyxla
    Member

    Thanks for checking in @annezazu - it hasn't been a priority over the past weeks, but there's still some experimentation that we'd like to do, albeit it not being on top of our list.

  24. tyxla commented on May 1, 2023

    @tyxla
    Member

    I've been working on a third version of the experiment, which I believe might be the one we end up using.

    Still need to polish it, fix tests, add demos, etc. but it looks promising so far: #50222.

  25. tyxla commented on May 10, 2023

    @tyxla
    Member

    #50222 has just landed, improving the site editor loading a lot, particularly the editor canvas loading:

    Screen.Recording.2023-05-10.at.10.52.17.mov

    We still have to work on improving the zoomed-out view loading state, so I suggest that we keep this issue open as we're working on that.

  26. mtias commented on May 10, 2023

    @mtias
    Member

    I'm fine closing this one since it's our main tracker for 6.3 and it's useful to see it's covered. We should break down followups and further improvements more granularly into a tracking issues.

  27. moved this from 💻 Needs development to ✅ Done in Gutenberg Phase 2: Customizationon May 10, 2023
  28. moved this from 🦵 Punted to 6.3 to ✅ Done in WordPress 6.2 Editor Taskson May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Needs Design Feedback[Feature] Site Editor[Priority] High

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions