-
Notifications
You must be signed in to change notification settings - Fork 10.4k
[Blazor] Client side : enable Brotli compression #13002
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
Comments
The blazor template doesn't include the response compression middleware by default. Brotli support was added back in 2.2 (aspnet/BasicMiddleware#217), and we added How is
|
That's the server template - the relevant stuff for client is here: |
Ok, that should be everything you need. @RemiBou you should already be seeing dynamic compression here. |
Yes indeed you got it covered already ! Thanks for your time, sorry for the
issue.
Le ven. 9 août 2019 21:42, Chris Ross <[email protected]> a écrit :
… Ok, that should be everything you need.
@RemiBou <https://github.com/RemiBou> you should already be seeing
dynamic compression here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13002>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKLY6TAGBBIOXZX5BOAKATQDXCEBANCNFSM4IKVEGVA>
.
|
Is your feature request related to a problem? Please describe.
When enabling brotli compression, you can decrease mscorlib.dll from 1,4MB to 647Kb (-54%) and System.Core from 310Kb to 145Kb. This kind of improvement can be seen on many other dll. Given the fact that load time is very important for client side app, this seems like an easy win.
Describe the solution you'd like
Maybe when calling MapFallbackToClientSideBlazor setup brotli and enable compression on "application/octet-stream"
Additional context
On my project Toss the first load went from 4,7MB to 2,7MB.
The text was updated successfully, but these errors were encountered: