Open Closed

Pre-rendering/Lazy Loading Blazor Webassembly #3631

listtraderdev2 created

Is there a way to perform pre-rendering or Lazy load a blazor webassembly project? Or better still, is there an ABP way of making the a blazor webassembly app load faster The initial loading of my app just takes too long. I have read the following articles to fix the problem. but they all made reference to an app.razor file which is not included in the generated project.

1 Answer(s)
  • 0
    enisn created
    Support Team

    App.razor files are part of the UI Theme. Each time implements it according to their requirements. You can create a new App.razor in your project and use it.

    But ABP Framework and Modules can't support Lazy Loading since they register their services into the dependency injection container and UI Components are resolved from ServiceProvider before rendering. So, that logic makes all of them replaceable from outside of the original assembly.

    You can see this issue:

    But Blazorise supports it by default and you don't need to do any configuration. It loads required js and dll files when you use a component.

    UPDATE: There is a useful article about it: