-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Shrink blazor.*.js file size, SignalR Minification #37260
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
Tried this out via #42268, this doesn't seem to be immediately feasible just by mangling alone as it causes issues with This issue breaks down into two parts. Mangling the blazor source code, and ensuring the SignalR code we take is/becomes mangled. The former will likely be a larger undertaking and with fairly low benefit. For instance take a look at the WASM/WebView size improvements below.
The Next steps for this issue would be to figure out how we can either take the existing mangled SignalR code instead of the source code we're taking now, or how we can mangle just the SignalR code without touching the Blazor code. I'm pushing this back into backlog at this point in time. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
If |
Not seeing any other So tried that out, but still ran into other issues: Uncaught (in promise) Error: System.ArgumentException: Property 'AssemblyName' cannot be null, empty, or whitespace. (Parameter 'assemblyKey')
at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.GetCachedMethodInfo(/AssemblyKey assembl…ng methodIdentifier) in /workspaces/aspnetcore/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetDispatcher.cs:line 355
at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.InvokeSynchronously(/JSRuntime jsRuntime…ce, String argsJson) in /workspaces/aspnetcore/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetDispatcher.cs:line 167
at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.BeginInvokeDotNet(/JSRuntime jsRuntime…fo, String argsJson) in /workspaces/aspnetcore/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetDispatcher.cs:line 97
at Te.endInvokeDotNetFromJS (Microsoft.JSInterop.js:319:19)
at Te.be (HubConnection.js:542:31)
at Te.Wt (HubConnection.js:407:30)
at Te.connection.onreceive (HubConnection.js:42:52)
at s.onmessage (WebSocketTransport.js:81:30)
Loggers.ts:38 asset blazor.server.js 122 KiB [emitted] [minimized] [big] (name: blazor.server) With further tweaking, improvements in this area should definitely be possible, but based on the preliminary numbers, I don't think they are high enough relative to the overall download size to make a substantial difference in load times. We can likely revisit this later as time permits. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
@BrennanConroy mentioned:
This issue tracks this effort to ensure we're minifying the SignalR bits. Not sure if we'll be able to take this for 6.0 given the current stage of the release, but will dig into it once I have some time available.
The text was updated successfully, but these errors were encountered: