Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@silas
Hmm. It's hard to say what the issue is without directly seeing the pages in question, but if the problem is FOUC, then yeah as you said you can do <html style="display:none"> and then reset that to display:initial in the final stylesheet or an inline style after the </body>.
Personally I never see that problem. Probably because, firstly, I load my external CSS synchronously in the head, or inline. I also I don't load that much content dynamically, which can cause the browser to rerender a bunch of times. I don't load too much content into a single page, which creates visible latency when pages load. I also use caching and other techniques to speed up rendering of static content.
But there are a whole bunch of possible reasons that could occur, and most of the time it's just poor design ime. It's hard to say exactly what the issue is without seeing it and fucking around with it for an afternoon.