Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

581
Views
How can i decrease dotnet.wasm size

I Have published blazor web assembly project in .net core 6 preview 7

now my dotnet.wasm file size is very large and this has 64mb and its take a few minutes to download and run application In this image you can see the dotnet.wasm file size

  • How can i decrease its size!?

i have published AOT Compilation and disabled globalization and other useless peace

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

You can use the Lazy Load Assembly feature available on .net 6 (and 5).

Look at Microsoft official documentation: https://docs.microsoft.com/en-us/aspnet/core/blazor/webassembly-lazy-load-assemblies?view=aspnetcore-5.0

You can decrease a lot your startup size and load time.

over 4 years ago · Santiago Trujillo Report

0

Add <PublishTrimmed>true</PublishTrimmed> to your .csproj (inside PropertyGroup). Trimming will do most of the size reduction for you. https://docs.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options

over 4 years ago · Santiago Trujillo Report

0

You can follow the guide at https://docs.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly to enable Brotli compression. Afterwards, you can optionally delete the uncompressed as well as the *.gz compressed files. That way, you can reduce the overall size a lot, down to a few megabytes.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!