Reputation: 498
Have a rendering problem when using FluentUI. The problem is - when you refresh the page (F5) - it is blinking (looks like initially it's rendered without any styles and only after few milliseconds the styles are applied)
It's easily can be reproduced with using FluentUI template
dotnet new install Microsoft.FluentUI.AspNetCore.Templates
dotnet new fluentblazor --name MyFluentApp
cd MyFluentApp
dotnet run
Especially, this is easy to see on /weather
page
Is it possible to eliminate those blinkings?
Upvotes: 1
Views: 647
Reputation: 7891
The problem is here:
_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.lib.module.js
blazor.web.js
is the caller for this js libraryblazor.web.js
is called as lastSolution:
<head>
:<script src="_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.lib.module.js"></script>
blazor.web.js
will load it again.Upvotes: 1