The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS FOUC Subsequent to Incorporating Critical.css Reply To: FOUC Subsequent to Incorporating Critical.css


There are two ways off the top of my head in which you could tackle this issue.

  1. (probably the easiest) You seem to already have a JS loader, where the content will show after fully loading, but said JS isn’t loading early enough, hence why you’re seeing the FOUC before the JS loader has… loaded.

  2. (what I would do) Get rid of the JS loader and amend your critical.css to include styles relating to everything “above the fold”. This means styles for all the content you see when you first load the page before scrolling. Anything below can load later.