Open Closed

Blazor WebApp + Blazor webAssembly module loading UI problems #9323


User avatar
0
blepo created

Hi, I'm having issues with the loading process of my Blazor WebAssembly module in Blazor WebApp project.

Loading recording: https://stgambit-my.sharepoint.com/:v:/p/blazej_leporowski/ES0tOPaTj11PqEIJjNEUSh0BdG3mc35imkOdk45mOMtXeA?e=Mt7M56

Initial load problems When the project starts, I can see the parts of the UI that come from the project itself, and some ABP modules. I canno see the menu for my module. This is probably as expected, as those modules have also server side versions?

However, for some time i cannot interact with the site in any way, even though it apperas as loaded. After 20s to 30s, my module loads. The module has been created using the ABP studio, and choosing the WebAssembly UI option.

This is my first question: Is there any way to make the module use the server side rendering first as well?

As you can see from the recording, there is another issue right away: the text in the filtering box does not fit in the box itself. This does not look good. As the menu, its design etc come out of the box, my second question is thus how to fix that issue? What can be causing it?


Module load problems Around the 20s mark, when the module loads, we can see two new issues. First one comes from the menu bar again: all the icons are gone. Do you have any suggestions what may be causing the icons to disappear from the menu, and how to fix that?

Secondly, upon the module load the entire body of the app gets stretched without any obvious reason. Again, there is nothing in the browser console logs to indicate any sort of issue. Have you ever encountered this issue? How can it be fixed?


Either I have managed to find several bugs all at once, or there is something about the way my app is linked with the custom module that creates those issues. I beleive I have followed all the reommendations from the docs, and have created the module using ABP studio. We've had those issues ever since we have first created the project.


8 Answer(s)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    I think it's similar to https://abp.io/support/questions/8834/Critical-perfomance-issue-Blazor-webapp-interactive-auto

    There is a performance issue on WebApp loading currently. but it seems some modules has different visuals on server-side render and client-side render, that may cause this dashboard visual changes

  • User Avatar
    0
    blepo created

    Regarding the loading time, it is probably exactly as you say. However, waht about the icons suddenly vanishing from all menus, and the body of the page suddenly expanding vertically?

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Regarding the loading time, it is probably exactly as you say. However, waht about the icons suddenly vanishing from all menus, and the body of the page suddenly expanding vertically?

    Hi, since Blazor WebApp, first acts as a Blazor Server app and then continue as Blazor WASM application (after wasm downloaded to the browser), unfortunately, this kind of shifting happens sometimes.

  • User Avatar
    0
    blepo created

    I'm not sure that this is the case. Even in the thread you mentioned, https://abp.io/support/questions/8767/Lagging-and-loading-time-of-Blazor-Web-App-Template-Application, it can be seen that this stuff does not happen. The lag in loading, yes, but not the other issues.,

    I appreciate your reluctance to jump into such a vague problem, but this is a critical issue for us. I would very much like to use my support token on this problem. I can provide the project, the har file from the network inspector, etc.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    [blepo] said: I'm not sure that this is the case. Even in the thread you mentioned, https://abp.io/support/questions/8767/Lagging-and-loading-time-of-Blazor-Web-App-Template-Application, it can be seen that this stuff does not happen. The lag in loading, yes, but not the other issues.,

    I appreciate your reluctance to jump into such a vague problem, but this is a critical issue for us. I would very much like to use my support token on this problem. I can provide the project, the har file from the network inspector, etc.

    Hi, thanks for the update. I'll create a new Blazor Web App to try and reproduce the issue on my end. Once I’ve had a chance to investigate it in detail, I’ll get back to you with my findings as soon as possible.

    Regards.

  • User Avatar
    0
    blepo created

    Hi, during this weekend i managed to isolate the problematic code and create a workaround. The issue is in App.razor file in the Blazor project. The App.razor is generated automatically by the Blazor WebApp template from ABP studio. This line:

    <AbpStyles BundleName="@BlazorLeptonXThemeBundles.Styles.Global" WebAssemblyStyleFiles="GlobalStyles" @rendermode="InteractiveAuto" />
    

    Causes the app to reload styles upon the WebAssembly module load. This causes the styling of the app to go all over the place, the icons disappear, etc. Removing the 'WebAssemblyStyleFiles' option and manually including the style css files actually fixes the issue:

    <AbpStyles BundleName="@BlazorLeptonXThemeBundles.Styles.Global" @rendermode="InteractiveAuto" />
    <!-- Manual CSS links -->
    <link href="global.css" rel="stylesheet" />
    <link href="main.css" rel="stylesheet" />
    <link href="blazor-global-styles.css" rel="stylesheet" />
    

    I don't know, however, why this happens. Is it a bug in ABP, or something about my configuration? Either way, is anyone encounters a similar problems, this seems to work for now.

  • User Avatar
    1
    maliming created
    Support Team Fullstack Developer

    hi

    during this weekend i managed to isolate the problematic code and create a workaround.

    What is your test project package version?

    We did some changes in >= 9.1.1

    https://github.com/abpframework/abp/pull/22357

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    If your test project >= 9.1.1

    Please share it with liming.ma@volosoft.com

    Thanks.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 01, 2025, 08:37