-
Book Overview & Buying
-
Table Of Contents
Web Development with Blazor - Fourth Edition
By :
The most common concerns regarding Blazor WebAssembly are download size and load time. While a small project is often around 1 MB and benefits from caching, the initial load time is usually the bigger concern, since all required files must be downloaded before the app can start. That said, download size can still matter, especially for first-time visitors or users on slower connections.
There are a couple of ways to improve this experience.
When it comes to User Experience (UX), we can give users a perceived sense of speed.
The default Blazor WebAssembly template has a loading progress indicator, which gives the users something to look at instead of a blank page. It is built so that it is easy to customize using CSS variables. We can use the ‑‑blazor‑load‑percentage and ‑‑blazor‑load‑percentage‑text variables to customize and create our progress bar.
The progress bar doesn't even have...