Re:JLayout — JavaScript Layout Algorithms
by pak on Friday May 28, 2010 @09:20AM
(#1386310)
another significant drawback of JavaScript layout is that it creates very noticeable flash-of-unstyled-content, since the page isn't being laid out incrementally.
[ Parent
| on HN ]
That can actually be worked around easily enough by giving the content "display: none" CSS styling and then using the JavaScript code to display the content after it is laid out.
However, if JavaScript is turned off the content will never show, so that is a problem.
> However, if JavaScript is turned off the content will never show, so that is a problem.
You can work around this by using document.write to output the display: none styling.