Hello forum folks
I use gsap's autoAlpha to avoid the flash of unstyled content, mostly on page load, but to truly earn the Good Boy™ badge I would like to make my pages visible even if js won't load. I know that some people are adding a class to the body with javascript in the head and use this class to attach css for js version of the page. I imagine that I could do in this scenario something like
.js {visibility: hidden;}
I have an intuition that may not always work for preventing fouc.
I couldn't find much on the topic, especially from recent years, so I wonder if that's a good way to do this, or are there other approaches?