Look into ways to pre-render styles in SSB
Open
enhancement
help wanted
- Dominant language
- C#
- Stars
- 193
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
Right now, SSB works like this:
```
If everything is working right, the background of this paragraph tag should be pink.
@code {
private string div;
protected override async Task OnAfterRenderAsync()
{
div = await Styled.Css("background-color: pink;");
StateHasChanged();
}
}
```
While this works, it will cause a small flicker on the browser side because the plain html will be rendered first then "enhanced" with the css.
Is there a way the all the styles can be "pre-rendered" and set down with the html?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.