Last post May 28, 2020 12:05 PM by wavemaster
May 26, 2020 10:36 AM|johnbalj|LINK
Blazor pages seems to load very slowly compared to standard html pages.
any suggestions to overcome this issue?
May 26, 2020 01:13 PM|Mikesdotnetting|LINK
Are you using server-side or client-side Blazor? Does this happen on every page all the time, or just some pages some of the time?
May 26, 2020 01:48 PM|PatriceSc|LINK
Try F12 Network to see what your browser loads. A client side Blazor app is first loaded in your browser before running which is likely what you see.
May 26, 2020 03:16 PM|johnbalj|LINK
Every time i run my home page it runs very slowly , so i don't think it is blazor first load, beside i have run Google website speed test and it determines that it is very slow (Around 20).
By the way my website is
May 26, 2020 05:02 PM|PatriceSc|LINK
It seems to show roughly the same information found in the "Audits" tab in Chrome.
The first point is a 700 Kb+ image that could be reduced to 5 Kb or less :
- rather than a wide image it could be repeated accross and so just having a "slice" would be enough: see https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat
- or maybe just removed by using https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient
etc... For now it seems you can jsut load less data and in particular smaller images...
May 28, 2020 12:05 PM|wavemaster|LINK
Consider using Cloudflare together with an aggressive caching approach.