3 ms·
Javascript always suffer from FOUC problem though (Unless it's server side). Although the if() css function seems to just be syntax suger of standard @media que
by mmis1000 11mo ago
Javascript always suffer from FOUC problem though (Unless it's server side). Although the if() css function seems to just be syntax suger of standard @media query. So it doesn't really add anything to solve existing problems.
Edited: It seems it can also be toggled from css variable? So it might actually fix some existing problems.
- mikestorrent 11mo agoHow hard would it be to have a response header that tells the browser "don't display anything at all until we ask you to from JS when we're ready"? Considering the kinds of crap that have been done with headers...
- coke12 11mo agoMany sites do something like that in practice. The problem is the extra 500ms of parse+eval time for your JS bundle influences user behavior a lot on the margin, so it’s better to not force the user to wait.
- mmis1000 11mo agoPractically only cordova does these for now. But it's a native app so of course it can do whatever it want.
- Tajnymag 11mo agoWould it be enough to have <body> hidden using an inline style in the initial html response and when everything is loaded, one would remove the style using javascript?
- account42 11mo agoHow hard would it be to use JS for progressive enhancement instead making your website depend on it to display simple text and images.