Is there a way to load my Blazor page faster?

David Thielen 3,216 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

Developer technologies | .NET | Blazor
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 81,981 Reputation points Volunteer Moderator
    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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.