Skip to content

Commit 05ba373

Browse files
committed
Do not hide SPA page while JS is loading
Should improve "visual" loads times, and SEO. Hiding the page is currently unnecessary it was added back in 2015 (9c11159), because we used to rely on the URL path fragment (`#/something`), which could be different from the page which was currently being loaded.
1 parent d90921a commit 05ba373

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Framework/Framework/Controls/SpaContentPlaceHolder.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,6 @@ protected internal override void OnPreRender(IDotvvmRequestContext context)
109109

110110
protected override void AddAttributesToRender(IHtmlWriter writer, IDotvvmRequestContext context)
111111
{
112-
if (context.RequestType == DotvvmRequestType.Navigate)
113-
{
114-
writer.AddStyleAttribute("display", "none");
115-
}
116-
writer.AddKnockoutDataBind("if", "dotvvm.isSpaReady");
117-
118112
base.AddAttributesToRender(writer, context);
119113
}
120114

0 commit comments

Comments
 (0)