<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 1 Way To Avoid the Flash of Unstyled Content</title>
	<atom:link href="http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content</link>
	<description>Tips, techniques, and tutorials for the jQuery JavaScript library</description>
	<lastBuildDate>Sun, 14 Mar 2010 16:12:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris M</title>
		<link>http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content/comment-page-1#comment-79726</link>
		<dc:creator>Chris M</dc:creator>
		<pubDate>Fri, 19 Feb 2010 17:57:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=105#comment-79726</guid>
		<description>Thanks for this example, it solved a problem I&#039;d been struggling with for a while. Very happy with the solution!</description>
		<content:encoded><![CDATA[<p>Thanks for this example, it solved a problem I&#8217;d been struggling with for a while. Very happy with the solution!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content/comment-page-1#comment-79662</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Tue, 02 Feb 2010 14:22:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=105#comment-79662</guid>
		<description>It is, so you can view source, but I&#039;ll also e-mail it. Thanks!</description>
		<content:encoded><![CDATA[<p>It is, so you can view source, but I&#8217;ll also e-mail it. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content/comment-page-1#comment-79658</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Mon, 01 Feb 2010 17:10:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=105#comment-79658</guid>
		<description>I think I&#039;m going to need to see all of the html/css/javascript to troubleshoot this one. If it&#039;s not public yet, maybe you could send a link to my first name at learningjquery.com?</description>
		<content:encoded><![CDATA[<p>I think I&#8217;m going to need to see all of the html/css/javascript to troubleshoot this one. If it&#8217;s not public yet, maybe you could send a link to my first name at learningjquery.com?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content/comment-page-1#comment-79657</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Mon, 01 Feb 2010 16:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=105#comment-79657</guid>
		<description>Dang, still not working. Here&#039;s a snippet of my JS in my header (at www.nbierma.com):

http://wordpress.pastebin.com/m3bc2d3f

and the HTML of the slideshow I&#039;m trying to hide until it&#039;s ready:

http://wordpress.pastebin.com/m378e7f9a 

(or view source, of course, at nbierma.com)</description>
		<content:encoded><![CDATA[<p>Dang, still not working. Here&#8217;s a snippet of my JS in my header (at <a href="http://www.nbierma.com" rel="nofollow">http://www.nbierma.com</a>):</p>
<p><a href="http://wordpress.pastebin.com/m3bc2d3f" rel="nofollow">http://wordpress.pastebin.com/m3bc2d3f</a></p>
<p>and the HTML of the slideshow I&#8217;m trying to hide until it&#8217;s ready:</p>
<p><a href="http://wordpress.pastebin.com/m378e7f9a" rel="nofollow">http://wordpress.pastebin.com/m378e7f9a</a> </p>
<p>(or view source, of course, at nbierma.com)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dima</title>
		<link>http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content/comment-page-1#comment-79648</link>
		<dc:creator>dima</dc:creator>
		<pubDate>Sun, 31 Jan 2010 04:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=105#comment-79648</guid>
		<description>to add part of html, then it is possible so:


$(&#039;html&#039;).html();
$(&#039;#add_class_html&#039;).hide();</description>
		<content:encoded><![CDATA[<p>to add part of html, then it is possible so:</p>
<p>$(&#8216;html&#8217;).html();<br />
$(&#8216;#add_class_html&#8217;).hide();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content/comment-page-1#comment-79639</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Wed, 27 Jan 2010 00:46:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=105#comment-79639</guid>
		<description>If you want to wait until the page, along with all the images, has loaded, you could do something like this:

&lt;pre&gt;&lt;code&gt;&lt;script type=&quot;text/javascript&quot;&gt;
  $(window).bind(&#039;load&#039;, function() {
      $(&#039;div.something&#039;).show();
  });
&lt;/script&gt;&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>If you want to wait until the page, along with all the images, has loaded, you could do something like this:</p>
<pre><code>&lt;script type="text/javascript"&gt;
  $(window).bind('load', function() {
      $('div.something').show();
  });
&lt;/script&gt;</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content/comment-page-1#comment-79625</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Mon, 25 Jan 2010 15:58:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=105#comment-79625</guid>
		<description>It does, thanks. Instead of a user clicking to make it visible, what&#039;s the command to make it visible as soon as the page is ready? To un-hide, in other words, when it&#039;s &quot;safe&quot; to show the content without it appearing un-styled?</description>
		<content:encoded><![CDATA[<p>It does, thanks. Instead of a user clicking to make it visible, what&#8217;s the command to make it visible as soon as the page is ready? To un-hide, in other words, when it&#8217;s &#8220;safe&#8221; to show the content without it appearing un-styled?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content/comment-page-1#comment-79599</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Thu, 21 Jan 2010 02:11:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=105#comment-79599</guid>
		<description>Hi Nathan,

Maybe a different example would help. Let&#039;s say you have a utility CSS class called &quot;js-hide&quot; that you want to add to all elements that should be hidden when the page loads. You could do that like so:

&lt;pre&gt;&lt;code&gt;&lt;script type=&quot;text/javascript&quot;&gt;
  document.documentElement.className = &#039;js&#039;;
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
  .js .js-hide { display: none; }
&lt;/style&gt;
&lt;/code&gt;&lt;/pre&gt;

Then, you might have an element in your html like this (with two classes, &quot;js-hide&quot; and &quot;something&quot;):

&lt;pre&gt;&lt;code&gt;&lt;div class=&quot;js-hide something&quot;&gt;this is initially hidden&lt;/div&gt;
&lt;/code&gt;&lt;/pre&gt;

You can show that div later on, based on some user input or some amount of elapsed time or whatever. For example, you could toggle its visibility in response to a user clicking on a button:
&lt;pre&gt;&lt;code&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
  $(document).ready(function() {
    $(&#039;#my-button&#039;).click(function() {
      $(&#039;div.something&#039;).toggle();
    });
  });  
&lt;/script&gt;
&lt;/code&gt;&lt;/pre&gt;

I hope that helps!</description>
		<content:encoded><![CDATA[<p>Hi Nathan,</p>
<p>Maybe a different example would help. Let&#8217;s say you have a utility CSS class called &#8220;js-hide&#8221; that you want to add to all elements that should be hidden when the page loads. You could do that like so:</p>
<pre><code>&lt;script type="text/javascript"&gt;
  document.documentElement.className = 'js';
&lt;/script&gt;
&lt;style type="text/css"&gt;
  .js .js-hide { display: none; }
&lt;/style&gt;
</code></pre>
<p>Then, you might have an element in your html like this (with two classes, &#8220;js-hide&#8221; and &#8220;something&#8221;):</p>
<pre><code>&lt;div class="js-hide something"&gt;this is initially hidden&lt;/div&gt;
</code></pre>
<p>You can show that div later on, based on some user input or some amount of elapsed time or whatever. For example, you could toggle its visibility in response to a user clicking on a button:</p>
<pre><code>
&lt;script type="text/javascript"&gt;
  $(document).ready(function() {
    $('#my-button').click(function() {
      $('div.something').toggle();
    });
  });
&lt;/script&gt;
</code></pre>
<p>I hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content/comment-page-1#comment-79471</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Wed, 06 Jan 2010 15:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=105#comment-79471</guid>
		<description>Karl, this is great. Forgive the noob question, but what actually goes in place of  &quot;   // Stuff to do as soon as the DOM is ready&quot; ? I can get it to hide but not reappear at my site.  Thanks!</description>
		<content:encoded><![CDATA[<p>Karl, this is great. Forgive the noob question, but what actually goes in place of  &#8221;   // Stuff to do as soon as the DOM is ready&#8221; ? I can get it to hide but not reappear at my site.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derekthanks</title>
		<link>http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content/comment-page-1#comment-79418</link>
		<dc:creator>Derekthanks</dc:creator>
		<pubDate>Sat, 19 Dec 2009 22:04:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=105#comment-79418</guid>
		<description>for the 2nd set of eyes!</description>
		<content:encoded><![CDATA[<p>for the 2nd set of eyes!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
