Skip to content

Improve loading state of SSR component to be optimistic with delayed spinner #35027

@jasmussen

Description

@jasmussen

PR #28289 improved the loading state of the ServerSideRender component to minimize jumps, and to ensure the spinner is shown in the same way as it is in other transient states, such as when uploading an image or a video. Here's what it used to look like:

spinner-before

Here's what it looks like now:

spinner-trunk

However this transient state can still be intrusive when you're just making small tweaks that are likely to finish in less than a second. When an operation is that fast, arguably there's no need to show a spinner at all. So we should consider enhancing the loading state with a delay: only enter the transient state after a second of time has passed and the operation hasn't completed yet.

That way, in most cases interacting with an SSR block won't feel much different from interacting with any other block. But there's still the safety net of a transient state, should the operation hiccup and take a while.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions