4 ms·
How 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
by mikestorrent 11mo ago
How 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.