Replies: 1 comment
-
I believe the best approach to ensuring that the loading indicator remains visible until the site is fully loaded is to base it on detecting the loading event in the window object. 1 - Remove the charging timer from the charging state. 2 - Add an event handler for the window object's loading event. 3 - Inside the event handler, set the loading state to false to indicate that loading is complete and the loading indicator can be removed. Something like:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
In this component, the loading indicator remains hidden until the website has fully loaded. I want to avoid using an artificial loading timer. The indicator should only disappear once the actual loading is complete. what i need to do ?
look how this loading work : https://kupro.vercel.app/
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions