News for hackers. Stuff that matters.
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.
Re:JLayout — JavaScript Layout Algorithms by NathanKP on Friday May 28, 2010 @09:23AM (#1386315)
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.

Re:JLayout — JavaScript Layout Algorithms by themanr on Friday May 28, 2010 @09:40AM (#1386353)
> 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.

Re:JLayout — JavaScript Layout Algorithms by NathanKP on Friday May 28, 2010 @10:14AM (#1386447)
Perfect! Why didn't I think of that before.