DEV Community

Discussion on: Learn Blazor for WebDev and get to use C# in all the layers

Collapse
 
shaijut profile image
Shaiju T • Edited

Nice, 😄.

stackoverflow.com/questions/607732...

2 Questions:

  1. I think based on above post, we cannot do a alert using C#, we have to invoke IJSRuntime . So how does this IJSRuntime does the alert ? does it converts C# to Javascript and then runs in browser ?

  2. How is Blazor initial load time after release of .NET 5 ? compared to Angular and React , is it performant ?

Collapse
 
softchris profile image
Chris Noring
  1. I think it becomes WASM, have a look here, technical lead Steve Sanderson is trying to explain how Blazor does things, blog.stevensanderson.com/2018/02/0...
  2. Here's an article explaining that visualstudiomagazine.com/articles/... yrs, performance improving a lot on .NET 5.. As for vs Js SPAs, I don't have exact metrics. One thing I know they ar working on is the initial bundle size, which takes time on first load