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

fix(ui): display loader during async loading component #641

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

madeindjs
Copy link
Collaborator

I recently introduced Async Components, but some of them are massive, and the loading time is noticeable. It renders as blank area, which is not good.

So I used loadingComponent property to fill the space during the loading, and improved a bit the loading strategy to improve the UX.

Screencast.From.2024-11-20.21-38-31.mp4

I rencently introduced Async Components but some of them are really big,
and the loading time is noticable. It renders as blank area which is not
good.

So I used `loadingComponent` property to fill the space during the
loading, and improved a bit the loading strategy to improve the UX.
@madeindjs madeindjs self-assigned this Nov 20, 2024
import BuilderSettingsProperties from "./BuilderSettingsProperties.vue";
import BuilderSettingsBinding from "./BuilderSettingsBinding.vue";
import BuilderSettingsVisibility from "./BuilderSettingsVisibility.vue";
import BuilderCopyText from "./BuilderCopyText.vue";
import BuilderAsyncLoader from "./BuilderAsyncLoader.vue";

const BuilderSettingsHandlers = defineAsyncComponent({
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The BuilderSettingsHandlers contains the monaco editor, so we don't want to wait everything to be loaded to display the settings.

@madeindjs madeindjs marked this pull request as ready for review November 20, 2024 20:53
@ramedina86 ramedina86 merged commit 88f7a77 into writer:dev Nov 21, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants