DavidAJohn / PhotoPortfolio

Personal photo portfolio .NET web application which implements a Blazor and Tailwind CSS user interface with a MongoDb database, and includes integration with Stripe Checkout and Prodigi Print API
0 stars 1 forks source link

Loading indicator component #54

Closed DavidAJohn closed 1 year ago

DavidAJohn commented 1 year ago

After updating the wwwroot/index.html page so it has an improved initial loading progress indicator, it struck me that there are other page loading situations where it would be useful to indicate to a user that something is happening.

For example, the Checkout page now makes a request to the Prodigi Print API on initialisation so there is a noticeable delay where the application appears to be frozen, when in fact it is just awaiting data.

I'd like to have a component that can be dropped in then hidden if a page is retrieving data when it initially loads. It could probably just be a relatively unobtrusive svg spinner rather than a candy-striped progress bar.