Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Pagespeed Insight is flagging blazor.server.js #56323

Closed
1 task done
lancecarlson opened this issue Jun 19, 2024 · 1 comment
Closed
1 task done

Google Pagespeed Insight is flagging blazor.server.js #56323

lancecarlson opened this issue Jun 19, 2024 · 1 comment
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-server ✔️ Resolution: Duplicate Resolved as a duplicate of another issue investigate Status: Resolved

Comments

@lancecarlson
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Have you had any issues with getting _framework/blazor.server.js to pass the Google Pagespeed Insights analysis? Without editing the js file, I'm not sure how to make it pass errors such as "using deprecated api", or 20kb+ is unused dead code. It would be nice if you split up the file so you could decide which parts you're including at any given moment.

Expected Behavior

It would be nice if you could split out what js files load if you don't need certain features.

Steps To Reproduce

Goto https://pagespeed.web.dev/ and point it at any blazor SSR application. It should flag the issues it is having.

Exceptions (if any)

I expect it to pass Google's Pagespeed insight test. If the solution is to allow you to split up the js file, they could be nice. Also resolving whatever deprecated API is being used would be nice.

.NET Version

8.0.201

Anything else?

https://pagespeed.web.dev/
#56081

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Jun 19, 2024
@mkArtakMSFT mkArtakMSFT added this to the .NET 10 Planning milestone Jun 19, 2024
@mkArtakMSFT
Copy link
Member

Thanks for contacting us.
We do plan to break up the large js files and we track that work as part of #53214.

As for the deprecated APIs, we plan to address that as part of #54793

@mkArtakMSFT mkArtakMSFT closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2024
@mkArtakMSFT mkArtakMSFT added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-server ✔️ Resolution: Duplicate Resolved as a duplicate of another issue investigate Status: Resolved
Projects
None yet
Development

No branches or pull requests

2 participants