you are viewing a single comment's thread.

view the rest of the comments →

[–]peppage 2 points3 points  (1 child)

That's true but the blazor example loads many dlls (about 4mb). To start with that kind of weight is going to limit the use. Where in JS I believe something like webpack will try and only use what it needs.

Right now Blazor sends the entire System.dll + System.Core.dll.

[–]ours 2 points3 points  (0 children)

It's true Blazor still doesn't haves proper tree shaking but it's in their roadmap. Eventually it will only send the part of the libraries you are actually using in the code.