djaodjin/djaoapp

FOUC visibile with new update

jpoechill opened this issue · 1 comments

Hey Team,

Super sweet update – everything loads a lot faster ~~ !!.

But I wanted to mention that with the new update, I'm getting a visible Flash-of-Un-styled-Content (FOUC) action before the page is completely loaded.

From looking at one of the main header files (index.html => base.html), I can see that there might have already been an attempt to fix this issue, seeing that the "no-js" class was already added to the html tag. For some reason, this appears to no longer be catching..?

--

In essence, I am following up a PR that addresses and gives a new fix to this issue. What I don't want to do is try to fix something that might have already been done before. Included reference link below to different solution sets.

Reference: The Most Effective Way to Avoid the FOUC
Video:
dd-fouc-02

this issue has been resolved!