dotnet / dotnet/aspnetcore

SEO performance issue with Blazor Web App

Open
#62,599 24 comments 0 reactions 0 assignees View on GitHub
area-blazor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

I have created my website with Blazor web app (the goal is to make it search engine optimized) and deployed it to azure web app service.

I have implemented almost all best practices in regard to the SEO but still getting bad scores in the SEO analyzers. The main reason is the high blocking time which is due to the JavaScript loading, it includes the `/_framework/blazor.web.js` and other unattributable scripts which I'm still unaware of them.

Image

I used multiple techniques like loading it synchronously, caching or using `defer` but nothing worked, even though I'm currently using the basic CSS theme provided with the Blazor Web App template.

Can you please guide me that which is the best way to make our site performance optimized or is there anything else which I'm missing here?

My site SEO reports:
Desktop:

Image

Mobile:

Image

Contributor guide

Open the contributing guide

Research direction

Start with the supplied desktop and mobile SEO reports and inspect the /_framework/blazor.web.js request and other unattributable scripts in the deployed Azure Web App. Compare the reported blocking time with the generated Blazor Web App template and its basic CSS theme; done requires a reproducible cause and a verified performance improvement.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
frontend, performance, web-dev
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.