<?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: How to add a webpage fade-in effect using JQuery</title>
	<atom:link href="http://blog.anselmbradford.com/2009/08/28/how-to-add-a-simple-webpage-fade-in-effect-using-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.anselmbradford.com/2009/08/28/how-to-add-a-simple-webpage-fade-in-effect-using-jquery/</link>
	<description>wrangling the Internet's wildest</description>
	<lastBuildDate>Fri, 16 Dec 2011 14:20:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: CiNiTriQs</title>
		<link>http://blog.anselmbradford.com/2009/08/28/how-to-add-a-simple-webpage-fade-in-effect-using-jquery/comment-page-1/#comment-27576</link>
		<dc:creator>CiNiTriQs</dc:creator>
		<pubDate>Mon, 24 Oct 2011 19:40:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=924#comment-27576</guid>
		<description>@ Max Malm

I have tried that one before, but it still seems to load the page first and for a split second I still see the whole page before it vanishes and comes back again.

I know this would look like a cleaner solution but in the end it&#039;s the smoothness that counts... until I find better solutions (or new tech) I will use the previous method.</description>
		<content:encoded><![CDATA[<p>@ Max Malm</p>
<p>I have tried that one before, but it still seems to load the page first and for a split second I still see the whole page before it vanishes and comes back again.</p>
<p>I know this would look like a cleaner solution but in the end it&#8217;s the smoothness that counts&#8230; until I find better solutions (or new tech) I will use the previous method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max Malm</title>
		<link>http://blog.anselmbradford.com/2009/08/28/how-to-add-a-simple-webpage-fade-in-effect-using-jquery/comment-page-1/#comment-27320</link>
		<dc:creator>Max Malm</dc:creator>
		<pubDate>Sun, 16 Oct 2011 16:20:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=924#comment-27320</guid>
		<description>Re: CiNiTriQs 

You could use
$(&quot;body&quot;).css(&quot;display&quot;, &quot;none&quot;);
$(document).ready(function() {
           $(&quot;body&quot;).fadeIn(2000);
});

instead and you shouldn&#039;t have the flickering.</description>
		<content:encoded><![CDATA[<p>Re: CiNiTriQs </p>
<p>You could use<br />
$(&#8220;body&#8221;).css(&#8220;display&#8221;, &#8220;none&#8221;);<br />
$(document).ready(function() {<br />
           $(&#8220;body&#8221;).fadeIn(2000);<br />
});</p>
<p>instead and you shouldn&#8217;t have the flickering.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CiNiTriQs</title>
		<link>http://blog.anselmbradford.com/2009/08/28/how-to-add-a-simple-webpage-fade-in-effect-using-jquery/comment-page-1/#comment-27314</link>
		<dc:creator>CiNiTriQs</dc:creator>
		<pubDate>Sun, 16 Oct 2011 11:39:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=924#comment-27314</guid>
		<description>Thanks for this. This is the only possible way I have found so far to have all the elements hidden before the page is actually loading while having a solution for users who have JS toggles off.

To show an example of how one could also try and target &quot;JS on&quot; - users only:

 $(document).ready(function() {
            $(&quot;body&quot;).css(&quot;display&quot;, &quot;none&quot;);
      	    $(&quot;body&quot;).fadeIn(2000);
    });

Problem with this is that the &quot;display:none&quot; only comes up after the page was initially loaded (thus showing a flicker of the full page before going blank and fading in again).

So thanks alot for this solution ;)
Will used it over here: http://www.belgianhiphop.be/ for some extra smooth browsing ;)</description>
		<content:encoded><![CDATA[<p>Thanks for this. This is the only possible way I have found so far to have all the elements hidden before the page is actually loading while having a solution for users who have JS toggles off.</p>
<p>To show an example of how one could also try and target &#8220;JS on&#8221; &#8211; users only:</p>
<p> $(document).ready(function() {<br />
            $(&#8220;body&#8221;).css(&#8220;display&#8221;, &#8220;none&#8221;);<br />
      	    $(&#8220;body&#8221;).fadeIn(2000);<br />
    });</p>
<p>Problem with this is that the &#8220;display:none&#8221; only comes up after the page was initially loaded (thus showing a flicker of the full page before going blank and fading in again).</p>
<p>So thanks alot for this solution <img src='http://blog.anselmbradford.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Will used it over here: <a href="http://www.belgianhiphop.be/" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/www.belgianhiphop.be/?referer=');">http://www.belgianhiphop.be/</a> for some extra smooth browsing <img src='http://blog.anselmbradford.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jluisfg</title>
		<link>http://blog.anselmbradford.com/2009/08/28/how-to-add-a-simple-webpage-fade-in-effect-using-jquery/comment-page-1/#comment-25483</link>
		<dc:creator>Jluisfg</dc:creator>
		<pubDate>Fri, 02 Sep 2011 22:24:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=924#comment-25483</guid>
		<description>Thanks for the tut, really simple and gives a great look. Not so static, how can I add easing? Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for the tut, really simple and gives a great look. Not so static, how can I add easing? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ans</title>
		<link>http://blog.anselmbradford.com/2009/08/28/how-to-add-a-simple-webpage-fade-in-effect-using-jquery/comment-page-1/#comment-22147</link>
		<dc:creator>Ans</dc:creator>
		<pubDate>Thu, 02 Jun 2011 05:24:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=924#comment-22147</guid>
		<description>Hi Kathrin,

Perhaps you are using absolute positioning? See earlier comment about that.</description>
		<content:encoded><![CDATA[<p>Hi Kathrin,</p>
<p>Perhaps you are using absolute positioning? See earlier comment about that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kathrin</title>
		<link>http://blog.anselmbradford.com/2009/08/28/how-to-add-a-simple-webpage-fade-in-effect-using-jquery/comment-page-1/#comment-22141</link>
		<dc:creator>kathrin</dc:creator>
		<pubDate>Thu, 02 Jun 2011 02:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=924#comment-22141</guid>
		<description>Hi, many thanks, realy great work! But it does not wok with IE8. It means the loading is between 5 and 8 seconds and than apears the side. Maybe you can help me?</description>
		<content:encoded><![CDATA[<p>Hi, many thanks, realy great work! But it does not wok with IE8. It means the loading is between 5 and 8 seconds and than apears the side. Maybe you can help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ans</title>
		<link>http://blog.anselmbradford.com/2009/08/28/how-to-add-a-simple-webpage-fade-in-effect-using-jquery/comment-page-1/#comment-21842</link>
		<dc:creator>Ans</dc:creator>
		<pubDate>Tue, 24 May 2011 13:03:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=924#comment-21842</guid>
		<description>Check the page using Firebug (http://getfirebug.com) or other web developer plugin that allows you to edit the page and see if you can adjust the output HTML and/or CSS to see what the problem may be.</description>
		<content:encoded><![CDATA[<p>Check the page using Firebug (<a href="http://getfirebug.com" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/getfirebug.com?referer=');">http://getfirebug.com</a>) or other web developer plugin that allows you to edit the page and see if you can adjust the output HTML and/or CSS to see what the problem may be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: evan</title>
		<link>http://blog.anselmbradford.com/2009/08/28/how-to-add-a-simple-webpage-fade-in-effect-using-jquery/comment-page-1/#comment-21838</link>
		<dc:creator>evan</dc:creator>
		<pubDate>Tue, 24 May 2011 11:05:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=924#comment-21838</guid>
		<description>I tried using this in wordpress, but the posts pages come up empty (tags were placed in header and footer around a div wrap). Any Ideas?</description>
		<content:encoded><![CDATA[<p>I tried using this in wordpress, but the posts pages come up empty (tags were placed in header and footer around a div wrap). Any Ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Leih</title>
		<link>http://blog.anselmbradford.com/2009/08/28/how-to-add-a-simple-webpage-fade-in-effect-using-jquery/comment-page-1/#comment-19979</link>
		<dc:creator>Joe Leih</dc:creator>
		<pubDate>Mon, 28 Mar 2011 16:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=924#comment-19979</guid>
		<description>Hi Ans,

Thanks so much, I tried the above on my index page but unfortunately it still doesn&#039;t seem to be working.

http://joeleih.com/test/indextest.html

Do you think the problem might be with the fact that my background images are in my CSS, homecontent and nav?

thanks,

Joe

[style removed]</description>
		<content:encoded><![CDATA[<p>Hi Ans,</p>
<p>Thanks so much, I tried the above on my index page but unfortunately it still doesn&#8217;t seem to be working.</p>
<p><a href="http://joeleih.com/test/indextest.html" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/joeleih.com/test/indextest.html?referer=');">http://joeleih.com/test/indextest.html</a></p>
<p>Do you think the problem might be with the fact that my background images are in my CSS, homecontent and nav?</p>
<p>thanks,</p>
<p>Joe</p>
<p>[style removed]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ans</title>
		<link>http://blog.anselmbradford.com/2009/08/28/how-to-add-a-simple-webpage-fade-in-effect-using-jquery/comment-page-1/#comment-19961</link>
		<dc:creator>Ans</dc:creator>
		<pubDate>Sun, 27 Mar 2011 20:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=924#comment-19961</guid>
		<description>Hi Joe,

Yeah, I would say the problem looks like what you have surmised. You&#039;re preloading the images, but place that code before the jQuery code for fading in the page. So instead of having the preload code in the body onload event, place it like so:

&lt;code&gt;
$(document).ready(function() 
{
		// preload images
		MM_preloadImages(&#039;images/nav-contact-up.gif&#039;,&#039;images/nav-links-up.gif&#039;,&#039;images/nav-hype-up.gif&#039;,&#039;images/nav-news-up.gif&#039;,&#039;images/nav-bio-up.gif&#039;,&#039;images/nav-films-up.gif&#039;,&#039;images/nav-comm-up.gif&#039;);

		// fade in content.
		$( &#039;#content-wrapper&#039; ).fadeIn(&quot;slow&quot;);		
});
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Joe,</p>
<p>Yeah, I would say the problem looks like what you have surmised. You&#8217;re preloading the images, but place that code before the jQuery code for fading in the page. So instead of having the preload code in the body onload event, place it like so:</p>
<p><code><br />
$(document).ready(function()<br />
{<br />
		// preload images<br />
		MM_preloadImages('images/nav-contact-up.gif','images/nav-links-up.gif','images/nav-hype-up.gif','images/nav-news-up.gif','images/nav-bio-up.gif','images/nav-films-up.gif','images/nav-comm-up.gif');</p>
<p>		// fade in content.<br />
		$( '#content-wrapper' ).fadeIn("slow");<br />
});<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

