Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page rendering on server side and client side #15

Open
Mahmoud-hassan87 opened this issue May 11, 2017 · 12 comments
Open

page rendering on server side and client side #15

Mahmoud-hassan87 opened this issue May 11, 2017 · 12 comments
Labels

Comments

@Mahmoud-hassan87
Copy link

When try this example I show the page rendering twice on server side and rendering again on client side, Why this behavior occurs ?

@fulls1z3 fulls1z3 changed the title The page rendering on server side and client side [question] the page rendering on server side and client side May 11, 2017
@fulls1z3 fulls1z3 self-assigned this May 11, 2017
@Gbuomprisco
Copy link

Hi @Mahmoud-hassan87,

I have the same issue and looking for a solution, even though I don't think this seed is responsible for the issue, must be a Universal issue instead. They did have an issue for this particular bug but they closed it.

@fulls1z3
Copy link
Owner

@Gbuomprisco can you please share the issue url here? Maybe I can catch something from the information there.

@Mahmoud-hassan87
Copy link
Author

Your sample have this issue

@Gbuomprisco
Copy link

@fulls1z3 What I experience is exactly what is described in this issue angular/universal-starter#139, and also others. Thing is these might be outdated now as they were using last year's code.

@fulls1z3
Copy link
Owner

@Gbuomprisco the info seems outdated, but can be useful. I'll dig into this a little this evening and see what can I do.
@Mahmoud-hassan87 thanks for the enlightment 👍

@Gbuomprisco
Copy link

Thanks @fulls1z3, I'll try as well

@Koslun
Copy link

Koslun commented May 13, 2017

@Mahmoud-hassan87 Not sure but you might be seeing this issue: angular/angular#15716. Essentially the issue is that the server-rendered CSS is removed from the DOM before the client CSS is applied, causing a flicker regardless of if you transfer the state perfectly or not.

Apparently a fix should be landing in the next angular releases, i.e. 4.1.3 and 4.2.0-beta.2. Where the renderer waits for the client to finish before removing the server CSS.

@Gbuomprisco
Copy link

Thanks @Koslun

@fulls1z3
Copy link
Owner

@Koslun thank you so much for this information, now I realized the reason that I subscribed to the updates of angular/angular#15716. Seems like we'll get it working soon, and I'm keeping this issue open in order to do not leave it unresolved.

@Skillnter
Copy link

Is there any update on flickering issue??

@fulls1z3
Copy link
Owner

fulls1z3 commented Sep 5, 2017

@Skillnter we're working on this issue, as well as other enhancements to this seed project - so soon I'll be able to share some updates.

@fulls1z3 fulls1z3 changed the title [question] the page rendering on server side and client side page rendering on server side and client side Sep 16, 2017
@smadil997
Copy link

Is there any update on flickering issue??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants