short icon indicating copy to clipboard operation
short copied to clipboard

[Feature] Add loading page component

Open rohithbalaji123 opened this issue 4 years ago • 4 comments

What is the problem? When visiting a page whose availability is determined from the server state, there is a time lag before the response is shown to the user.

Your solution We can show an intermediate loading page to let users know that we have received the request and the server is validating the page access request.

Alternatives considered Currently, an empty page is shown. If having a loading page is found to add resource overhead, we can leave it as such.

Additional context When a user goes to an auth protected route, say admin panel, there is a network call made to determine if the page is accessible. I have added a 2 second delay in server to show the need for this in the following GIF.

loading

rohithbalaji123 avatar May 26 '20 04:05 rohithbalaji123

I wonder why did it take so long to load. Is it purely network latency? We can use Chrome profile tool to find out what's exactly going on here.

Both loading animation and server side rendering sound good to me.

magicoder10 avatar May 26 '20 05:05 magicoder10

@byliuyang

Additional context

When a user goes to an auth protected route, say admin panel, there is a network call made to determine if the page is accessible. I have added a 2 second delay in server to show the need for this in the following GIF.

rohithbalaji123 avatar May 26 '20 05:05 rohithbalaji123

@rohithbalaji123 Oh! Sorry for missing that.

magicoder10 avatar Jun 13 '20 04:06 magicoder10

Interested in taking this!

Coteh avatar Jun 13 '20 23:06 Coteh