[Question] Prerendered page is re-rendering on client #1484

Closed
opened 2025-08-09 17:20:19 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @leocosta on 7/22/2016

Hi!

I just started a project using the Angular2Spa template.

I have been having some trouble when the prerenderer module is enabled.
In the first hit, when a page is prerendered on server and displayed on browser, shortly thereafter the page is rendered again on client (and jumps to the top of the page each first time a route is loaded).

One thing I noticed is that when the script file "~/dist/main.js" is removed of Index.cshtml, the problem does not happen anymore.

Any idea what it is?

Thanks!

*Originally created by @leocosta on 7/22/2016* Hi! I just started a project using the Angular2Spa template. I have been having some trouble when the prerenderer module is enabled. In the first hit, when a page is prerendered on server and displayed on browser, shortly thereafter the page is rendered again on client (and jumps to the top of the page each first time a route is loaded). One thing I noticed is that when the script file "~/dist/main.js" is removed of Index.cshtml, the problem does not happen anymore. Any idea what it is? Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1484
No description provided.