-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
feat(nuxt): loading indicator enhancement #25119
feat(nuxt): loading indicator enhancement #25119
Conversation
- replace setInterval with RAF - in order to ensure smoother animation and better UX - implement default timing function based on arctangent trigonometric function - so as to improve UX - add according prop to accept custom timing function - to enable define custom behavior
Run & review this pull request in StackBlitz Codeflow. |
β Live Preview ready!
|
β¦he progressionRate prop
I'm not sure that it can be considered as a new feature, I ticked that type according to the issue name - there is "Feature Request" in the name. Please let me know if it needs to be changed. |
I've noticed some failed checks that I'm unable to reproduce locally. Could these be related to the changes I made? I'm keen to resolve this issue to help get this PR merged. Any guidance or pointers on what I should focus on would be greatly appreciated. |
I am not seeing that much of a difference if I set the |
π Linked issue
24552
β Type of change
π Description
Resolves: #24552
The problem:
This PR addresses the issue of the loading indicator prematurely reaching 100% when actual page loading exceeds the specified duration, leading to a stagnant indicator and potential user confusion.
Objective:
Improve UX for extended load times: implement a loading indicator that dynamically adjusts its progression, preventing it from indicating 100% completion until the page has fully loaded. This change aims to enhance user experience by providing a more accurate visual representation of the loading status, particularly in longer loading scenarios.
Key Changes:
progressionRate
property) progress, ensuring a continuous display of loading progress even during longer load times. This approach provides a more accurate representation of the ongoing loading process.Result:
π Checklist