<?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: 5d dynamic stylesheets</title>
	<atom:link href="http://www.stevesouders.com/blog/2010/02/12/5d-dynamic-stylesheets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stevesouders.com/blog/2010/02/12/5d-dynamic-stylesheets/</link>
	<description>Essential knowledge for making your web pages faster.</description>
	<lastBuildDate>Sat, 04 Feb 2012 09:46:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Aaron Peters</title>
		<link>http://www.stevesouders.com/blog/2010/02/12/5d-dynamic-stylesheets/#comment-1768</link>
		<dc:creator>Aaron Peters</dc:creator>
		<pubDate>Tue, 09 Mar 2010 14:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=901#comment-1768</guid>
		<description>hi Steve,

I tested the DHTML + setTimeout stylesheet page multiple times in IE7 on Vista with empty cache: the screen is blank until the stylesheet has finished loading.

- Aaron</description>
		<content:encoded><![CDATA[<p>hi Steve,</p>
<p>I tested the DHTML + setTimeout stylesheet page multiple times in IE7 on Vista with empty cache: the screen is blank until the stylesheet has finished loading.</p>
<p>- Aaron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karuna</title>
		<link>http://www.stevesouders.com/blog/2010/02/12/5d-dynamic-stylesheets/#comment-1672</link>
		<dc:creator>karuna</dc:creator>
		<pubDate>Tue, 23 Feb 2010 09:17:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=901#comment-1672</guid>
		<description>@Ruslan - isn&#039;t this expected, because by having setTimeout() we have just delayed the IE to block rendering at a later point of time. So as soon as the  node is parsed, IE probably stops the construction of rendering tree or repainting.

And I think your solution works because you are inserting the style into the sheet and not referring to an external stylesheet. Probably if there was a external stylesheet reference in your solution, then IE would block rendering again.</description>
		<content:encoded><![CDATA[<p>@Ruslan &#8211; isn&#8217;t this expected, because by having setTimeout() we have just delayed the IE to block rendering at a later point of time. So as soon as the  node is parsed, IE probably stops the construction of rendering tree or repainting.</p>
<p>And I think your solution works because you are inserting the style into the sheet and not referring to an external stylesheet. Probably if there was a external stylesheet reference in your solution, then IE would block rendering again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruslan</title>
		<link>http://www.stevesouders.com/blog/2010/02/12/5d-dynamic-stylesheets/#comment-1620</link>
		<dc:creator>Ruslan</dc:creator>
		<pubDate>Tue, 16 Feb 2010 07:37:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=901#comment-1620</guid>
		<description>@Steve, please open http://lab.fullajax.ru/ie-js-css-bridge/blocking.html in FF and then in IE, and looking for difference. 

if you have any problem for determination difference, look at screenshot http://lab.fullajax.ru/ie-js-css-bridge/screenshot.png</description>
		<content:encoded><![CDATA[<p>@Steve, please open <a href="http://lab.fullajax.ru/ie-js-css-bridge/blocking.html" rel="nofollow">http://lab.fullajax.ru/ie-js-css-bridge/blocking.html</a> in FF and then in IE, and looking for difference. </p>
<p>if you have any problem for determination difference, look at screenshot <a href="http://lab.fullajax.ru/ie-js-css-bridge/screenshot.png" rel="nofollow">http://lab.fullajax.ru/ie-js-css-bridge/screenshot.png</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Souders</title>
		<link>http://www.stevesouders.com/blog/2010/02/12/5d-dynamic-stylesheets/#comment-1614</link>
		<dc:creator>Steve Souders</dc:creator>
		<pubDate>Mon, 15 Feb 2010 23:14:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=901#comment-1614</guid>
		<description>@sunnybear - What&#039;s the URL for Stoyan&#039;s post?

@Ruslan - I&#039;m not seeing the blocking behavior.

@Joris - Yes, loading them after the onload event also works. In some cases (such as widgets) it&#039;s not desirable to wait that long.</description>
		<content:encoded><![CDATA[<p>@sunnybear &#8211; What&#8217;s the URL for Stoyan&#8217;s post?</p>
<p>@Ruslan &#8211; I&#8217;m not seeing the blocking behavior.</p>
<p>@Joris &#8211; Yes, loading them after the onload event also works. In some cases (such as widgets) it&#8217;s not desirable to wait that long.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joris</title>
		<link>http://www.stevesouders.com/blog/2010/02/12/5d-dynamic-stylesheets/#comment-1613</link>
		<dc:creator>Joris</dc:creator>
		<pubDate>Mon, 15 Feb 2010 22:40:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=901#comment-1613</guid>
		<description>What about adding the unused stylesheets to the HEAD at window.onload event?

Theoretically your HTTP request should not interfere with the other requests.</description>
		<content:encoded><![CDATA[<p>What about adding the unused stylesheets to the HEAD at window.onload event?</p>
<p>Theoretically your HTTP request should not interfere with the other requests.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruslan</title>
		<link>http://www.stevesouders.com/blog/2010/02/12/5d-dynamic-stylesheets/#comment-1612</link>
		<dc:creator>Ruslan</dc:creator>
		<pubDate>Mon, 15 Feb 2010 22:36:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=901#comment-1612</guid>
		<description>I&#039;m sorry, but I must disappoint you. Blocking continues even when using setTimeout. Take a look at an example that demonstrates the problem
http://lab.fullajax.ru/ie-js-css-bridge/blocking.html

I&#039;ve found so far the only solution that does not block IE, is to use js-css bridge

(function () (
var d = document, style = d.getElementsByTagName ( &quot;head&quot;) [0]. appendChild (d.createElement ( &quot;style&quot;));
style.type = &quot;text/css&quot;;
style.styleSheet.cssText = &quot;body {background: red}&quot;;
))()

Here is an example implementation
http://lab.fullajax.ru/ie-js-css-bridge/nonblocking.html</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry, but I must disappoint you. Blocking continues even when using setTimeout. Take a look at an example that demonstrates the problem<br />
<a href="http://lab.fullajax.ru/ie-js-css-bridge/blocking.html" rel="nofollow">http://lab.fullajax.ru/ie-js-css-bridge/blocking.html</a></p>
<p>I&#8217;ve found so far the only solution that does not block IE, is to use js-css bridge</p>
<p>(function () (<br />
var d = document, style = d.getElementsByTagName ( &#8220;head&#8221;) [0]. appendChild (d.createElement ( &#8220;style&#8221;));<br />
style.type = &#8220;text/css&#8221;;<br />
style.styleSheet.cssText = &#8220;body {background: red}&#8221;;<br />
))()</p>
<p>Here is an example implementation<br />
<a href="http://lab.fullajax.ru/ie-js-css-bridge/nonblocking.html" rel="nofollow">http://lab.fullajax.ru/ie-js-css-bridge/nonblocking.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunnybear</title>
		<link>http://www.stevesouders.com/blog/2010/02/12/5d-dynamic-stylesheets/#comment-1606</link>
		<dc:creator>sunnybear</dc:creator>
		<pubDate>Mon, 15 Feb 2010 06:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevesouders.com/blog/?p=901#comment-1606</guid>
		<description>This is a very useful technique (also Stoyan has coverd it recently) - when you have a website with few stylesheets. And on the home page there is used only one of them - you can just download &#039;in background&#039; all others (it&#039;s not related to @media print, but to stylesheets at all). This download can be done with attribute &#039;disabled&#039; - you can cover its behavior in one of the next posts.</description>
		<content:encoded><![CDATA[<p>This is a very useful technique (also Stoyan has coverd it recently) &#8211; when you have a website with few stylesheets. And on the home page there is used only one of them &#8211; you can just download &#8216;in background&#8217; all others (it&#8217;s not related to @media print, but to stylesheets at all). This download can be done with attribute &#8216;disabled&#8217; &#8211; you can cover its behavior in one of the next posts.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

