<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>the codem web development blog - Surry Hills, Sydney, Australia &#187; ie8</title>
	<atom:link href="http://www.codem.com.au/streams/tag/ie8/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codem.com.au/streams</link>
	<description>web development, architecture and server management</description>
	<lastBuildDate>Wed, 30 Nov 2011 23:22:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Cufón and the flash of unstyled text</title>
		<link>http://www.codem.com.au/streams/2010/web-development/cufon-and-the-flash-of-unstyled-text.html</link>
		<comments>http://www.codem.com.au/streams/2010/web-development/cufon-and-the-flash-of-unstyled-text.html#comments</comments>
		<pubDate>Thu, 09 Sep 2010 00:59:30 +0000</pubDate>
		<dc:creator>James Ellis</dc:creator>
				<category><![CDATA[tech tips]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[cufon]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[font replacement]]></category>
		<category><![CDATA[font-face]]></category>
		<category><![CDATA[fouc]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[offscreen]]></category>
		<category><![CDATA[replacement]]></category>
		<category><![CDATA[sifr]]></category>

		<guid isPermaLink="false">http://www.codem.com.au/streams/?p=58</guid>
		<description><![CDATA[Want to avoid the flash of unstyled text using Cufón? Try this out.]]></description>
			<content:encoded><![CDATA[<p>A quickie but a goodie. Cufón&#8217;s great for embedding fonts into web pages without having to resort to images or Flash. In some cases there is a Flash Of Unstyled Text (FOUT) when the page is loading, with the default pre-replaced text rendered in a web font shining through for a split second.</p>
<p>I tried all the recommended options including Cufon.now() <a href="http://www.chris-wallace.com/2009/07/25/fix-flash-of-unstyled-content-with-cufon/">and a visibility CSS trick</a> but neither seemed to work. Eventually I came up with this solution, which only involves removing a  class added to Cufón targets. All your offscreen rules happen in a CSS file and not in Javascript.</p>
<p>In your  stylesheet add this class rule (which is applied to every HTML element you wish to have Cufón-ised) e.g &lt;h2 class=&#8221;cufonised&#8221;&gt;</p>
<pre> .cufonised { text-indent : -9000px; }</pre>
<p><em>After</em> your <a href="http://github.com/sorccu/cufon/wiki/usage">Cufon.replace</a> javascript (which I place in a document.ready event handler), add this JS:</p>
<pre>jQuery('.cufonised').removeClass('cufonised');</pre>
<p>&#8230;which resets the text-indent style and shows the Cufón-ised text (i.e the &#8220;Cufon.replace()&#8221; happens off-screen to the left). visibility : hidden/visible doesn&#8217;t seem to work in IE here, so we resort to text-indent.</p>
<p>For non JS enabled browsers and devices, use a noscript tag to reset the style and show the un-Cufón-ised text</p>
<pre>&lt;noscript&gt;&lt;style type="text/css"&gt; .cufonised { text-indent : 0px; } &lt;/style&gt;&lt;/noscript&gt;</pre>
<p>After all that you should have a well behaved Cufón replacement happening cross browser.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codem.com.au/streams/2010/web-development/cufon-and-the-flash-of-unstyled-text.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wouldn&#8217;t it be nice&#8230;</title>
		<link>http://www.codem.com.au/streams/2009/web-development/wouldnt-it-be-nice.html</link>
		<comments>http://www.codem.com.au/streams/2009/web-development/wouldnt-it-be-nice.html#comments</comments>
		<pubDate>Thu, 14 May 2009 13:18:57 +0000</pubDate>
		<dc:creator>James Ellis</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[arora]]></category>
		<category><![CDATA[broken page icon]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[browser support]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[compatibility mode]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://www.customr.net/streams/?p=42</guid>
		<description><![CDATA[Could Microsoft offer a WebKit rendering option in Internet Explorer 8?]]></description>
			<content:encoded><![CDATA[<p>With the release of Internet Explorer 8 (IE8) developers are finally in the position of enjoying the benefits of a standards compliant browser from each major vendor (think Firefox, Opera, Safari, Chrome and now IE8) &#8211; I thought the day would never come!</p>
<p>IE8 though, still tips a hat to its less illustrious predecessors with &#8220;compatibility mode&#8221; &#8211; something sure to confuse the browsing public, especially <a href="http://www.microsoft.com/library/media/1033/windows/images/internet-explorer/default/feat_200_compatview.jpg">that broken page icon</a>. To me it just seems to be a half-baked solution that will cause more problems than its worth &#8211; I can envisage people clicking away at that button and ending up in page layout hell.</p>
<p>It&#8217;s a hole that Microsoft have dug themselves into by not doing incremental updates to their browser rendering engine, so forcing developers to keep in step as new, non backwards-compatible, changes appear.</p>
<p>Rather than delving into it further, I&#8217;d like to propose a solution. Instead of dealing with the various idiosyncratic rendering engine(s) in IE, how about letting developers specify, say, <a href="http://webkit.org">WebKit</a> as the rendering engine for their sites? Microsoft engineers have shown that they can switch rendering modes on the fly with their &#8220;X-UA-Compatible&#8221; HTTP header &#8211; would it be too much to ask for support of something like&#8230;</p>
<pre>header('X-IE-RenderEngine: WebKit');</pre>
<p>which could tell IE to pass the incoming document off to WebKit?</p>
<p><a href="http://google.com/chrome">Google</a>, <a href="http://code.google.com/p/arora/">Arora</a> and <a href="http://apple.com/safari">Apple</a> have shown they can get excellent WebKit based browsers running on Windows &#8211; why not Microsoft, too?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codem.com.au/streams/2009/web-development/wouldnt-it-be-nice.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

