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

[Feature]: Add loading style to lazy compilation to improve user experience #7773

Open
zhangdaren opened this issue Sep 3, 2024 · 0 comments
Labels
feat New feature or request
Milestone

Comments

@zhangdaren
Copy link

zhangdaren commented Sep 3, 2024

What problem does this feature solve?

Now if lazy compilation is enabled, the startup speed is very fast. When switching routes, the route needs to be temporarily loaded, which causes a waiting time, and there is no prompt on the page, causing users to think that the page is stuck. Therefore, it is recommended to add loading at the top of the page after turning on lazy compilation to tell users that it is loading.

现在如果开启 lazy compilation时,启动速度很快。 在切换路由时,则需要临时加载路由,导致需要等待一段时间,而且页面毫无提示,导致用户以为页面卡死。因此,建议在开启 lazy compilation后,在页面顶部增加loading,来告诉用户正在加载中。

What does the proposed API look like?

@chenjiahan chenjiahan transferred this issue from web-infra-dev/rsbuild Sep 3, 2024
@chenjiahan chenjiahan changed the title [Feature]: 给 lazy compilation 添加loading样式,提升用户体验 [Feature]: Add loading style to lazy compilation to improve user experience Sep 3, 2024
@chenjiahan chenjiahan added the feat New feature or request label Sep 3, 2024
@hardfist hardfist added this to the 1.1.0 milestone Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants