Is there a way to load my Blazor page faster?

David Thielen 2,506 Reputation points
2024-06-26T13:59:00.12+00:00

Hi all;

I go to a page on my Blazor (server) app, then press refresh. Chrome normal reload. The very first request of the browser (F12 - Network) is for Dashboard which is the page it is refreshing. That request takes 1.02 seconds (ow!!!)

LoadDashboard

This is hitting my app on Azure App Server. Is there anything I can do to speed this up? All of the substantial times strike me as much higher than reasonable?

I did it several additional times and the DNS lookup dropped to 17 μs but the other three continued to take a lot of time.

??? - thanks - dave

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,471 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,258 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 60,201 Reputation points
    2024-06-26T16:15:36.8166667+00:00

    if you hit refresh with a Blazor app, it unloads the running app and starts a new one (actually two if pre-render enabled). the main speedup is to be sure your Blazor initial startup is fast.

    0 comments No comments