Skip to content

Should Blazor AOT still be downloading dlls? #33730

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

Closed
srpeirce opened this issue Jun 21, 2021 · 2 comments
Closed

Should Blazor AOT still be downloading dlls? #33730

srpeirce opened this issue Jun 21, 2021 · 2 comments
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-aot-compilation This issue is related to AoT compilation of Blazor WebAssembly apps feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved

Comments

@srpeirce
Copy link

Describe the bug

When running AOT build I am seeing the blazor.wasm file increase size from 398KB to 3.6MB which matches my expectations.

However, I am also still seeing the dlls being downloaded, these look exactly the same files and sizes as per the non-AOT application. My assumption was that these would no longer be required, or would be .wasm instead?

To Reproduce

Load dev tools, clear application data. Navigate to AOT compiled site.

Dlls are still downloaded as well as wasm file.

image
image

Exceptions (if any)

Further technical details

Following notes from here: https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-6-preview-4/#blazor-webassembly-ahead-of-time-aot-compilation

Prerendering the wasm app in server project.

From the Client csproj:

<PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
    <ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
    <BlazorEnableTimeZoneSupport>false</BlazorEnableTimeZoneSupport>
    <BlazorWebAssemblyPreserveCollationData>false</BlazorWebAssemblyPreserveCollationData>
    <InvariantGlobalization>true</InvariantGlobalization>
    <RunAOTCompilation>true</RunAOTCompilation>
  </PropertyGroup>

I appreciate that I might not of fully understood how AOT is working, in which case I apologise for wasting time. I would appreciate a link to some more information as to how it all works :)

@srpeirce srpeirce changed the title Should AOT still be downloading dlls? Should Blazor AOT still be downloading dlls? Jun 21, 2021
@javiercn javiercn added area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly labels Jun 22, 2021
@javiercn
Copy link
Member

@srpeirce thanks for contacting us.

I believe this is a known (temporary) behavior. @pranavkm can you confirm?

@javiercn javiercn added feature-blazor-aot-compilation This issue is related to AoT compilation of Blazor WebAssembly apps ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question labels Jun 22, 2021
@ghost ghost added the Status: Resolved label Jun 22, 2021
@ghost
Copy link

ghost commented Jun 23, 2021

This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.

See our Issue Management Policies for more information.

@ghost ghost closed this as completed Jun 23, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jul 23, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-aot-compilation This issue is related to AoT compilation of Blazor WebAssembly apps feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved
Projects
None yet
Development

No branches or pull requests

2 participants