Last post May 28, 2020 12:05 PM by wavemaster
Member
3 Points
5 Posts
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?
All-Star
194496 Points
28080 Posts
Moderator
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?
48530 Points
18077 Posts
May 26, 2020 01:48 PM|PatriceSc|LINK
Hi,
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
https://www.macroshire.com/
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...
Contributor
2613 Points
2718 Posts
May 28, 2020 12:05 PM|wavemaster|LINK
Consider using Cloudflare together with an aggressive caching approach.
Member
3 Points
5 Posts
Performance Issues
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?
All-Star
194496 Points
28080 Posts
Moderator
Re: Performance Issues
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?
All-Star
48530 Points
18077 Posts
Re: Performance Issues
May 26, 2020 01:48 PM|PatriceSc|LINK
Hi,
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.
Member
3 Points
5 Posts
Re: Performance Issues
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
https://www.macroshire.com/
All-Star
48530 Points
18077 Posts
Re: Performance Issues
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...
Contributor
2613 Points
2718 Posts
Re: Performance Issues
May 28, 2020 12:05 PM|wavemaster|LINK
Consider using Cloudflare together with an aggressive caching approach.