Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Double white page flash on page #436

Closed
amitjain28 opened this issue Sep 19, 2017 · 4 comments
Closed

Double white page flash on page #436

amitjain28 opened this issue Sep 19, 2017 · 4 comments
Labels

Comments

@amitjain28
Copy link

Double white page flash on pages when loading. it is clearly visible on Desktop and Mobile.
How can i remove it ?
Is this due to AOT or angular pre-rendering ?

@MarkPieszak
Copy link
Contributor

Do you have Http calls on that page?
You either need to setup the TransferState Http, or you need to setup your RouterModule options.

RouterModule.forRoot([ /* your routes */, {
  preloadingStrategy: PreloadAllModules,
  initialNavigation: 'enabled'
});

@hesampour
Copy link

@MarkPieszak method not worked for my project.

@patrykp57
Copy link

patrykp57 commented Apr 19, 2018

I've tried that solution also but issue still exist.

You can check described issue here angular/angular#23427

@avishwakarma
Copy link

If there is any external script you are loading, use async attribute to solve the flickering issue.

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

No branches or pull requests

5 participants