5

What is the best way to avoid FOUC in angular 2 and above? Is there any alternative of ng-cloak in angular 2 versions. I have research on this, but couldn't found any satisfying way to prevent FOUC.

user2527725
  • 121
  • 1
  • 8
  • I have never experienced a FOUC in Angular (v2+). What browser do you use ? – Noémi Salaün Jan 17 '18 at 07:42
  • I have tested on chrome. I think that everything that are bind using the double curly brackets {{}} is potentially displayed before loading the styles. – user2527725 Jan 17 '18 at 08:25
  • Hmm... How do you serve your Angular application ? Do you experience the same thing if you create a new Angular project using the Angular CLI ? – Noémi Salaün Jan 17 '18 at 08:31
  • the problem is when a template paints a data model showing some content which gets temporarily cleared while async loading new content. The view goes from show-A to flash of show-empty to show-B. – user292701 Mar 21 '18 at 17:42

0 Answers0