<?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>My Little Black Book &#187; performance</title>
	<atom:link href="http://blog.williegoosen.com/tag/performance/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.williegoosen.com</link>
	<description></description>
	<lastBuildDate>Tue, 24 Aug 2010 11:42:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Performance Bootcamp</title>
		<link>http://blog.williegoosen.com/2010/02/performance-bootcamp/</link>
		<comments>http://blog.williegoosen.com/2010/02/performance-bootcamp/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 12:10:35 +0000</pubDate>
		<dc:creator>Willie Goosen</dc:creator>
				<category><![CDATA[Webstock2010]]></category>
		<category><![CDATA[day3]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[workshop]]></category>

		<guid isPermaLink="false">http://blog.williegoosen.com/?p=89</guid>
		<description><![CDATA[Presenters : Amy Hoy @amyhoy Thomas Fuchs @thomasfuchs Sites: http://mir.aculo.us http://slash7.com/about/ photo credit: Chris Shiflett A quote from Thomas Fuchs&#8217; site&#8230; &#8220;You&#8217;re using my work every day, even if you&#8217;re not aware of it&#8221;. Thomas is the author of http://script.aculo.us and working group member of prototype.  Funnily enough williegoosen.com uses mootools, which uses prototype.  Amy has [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Chris Shiflett" href="http://www.flickr.com/photos/shiflett/3639618407/" target="_blank"><img class="alignright" style="border: 0pt none;" src="http://farm3.static.flickr.com/2270/2272128435_209181ef4d_m.jpg" border="0" alt="Amy Hoy and Thomas Fuchs" width="240" height="160" /></a> Presenters :</p>
<ul>
<li>Amy Hoy <a href="http://twitter.com/amyhoy" target="_blank">@amyhoy</a></li>
<li>Thomas Fuchs <a href="http://twitter.com/thomasfuchs" target="_blank">@thomasfuchs</a></li>
</ul>
<p>Sites:</p>
<ul>
<li> <a href="http://mir.aculo.us" target="_blank">http://mir.aculo.us</a></li>
<li> <a href="http://slash7.com/about/" target="_blank">http://slash7.com/about/</a></li>
</ul>
<p><small><a title="Attribution-NonCommercial-NoDerivs License" href="http://creativecommons.org/licenses/by-nc-nd/2.0/" target="_blank"><img src="../wp-content/plugins/photo-dropper/images/cc.png" border="0" alt="Creative Commons License" width="16" height="16" align="absmiddle" /></a> photo credit: <a title="Link to Chris Shiflett's photostream" rel="dc:creator cc:attributionURL" href="http://www.flickr.com/photos/shiflett/" target="_blank">Chris Shiflett</a></small></p>
<p>A quote from Thomas Fuchs&#8217; site&#8230; &#8220;You&#8217;re using my work every day, even if you&#8217;re not aware of it&#8221;. Thomas is the author of http://script.aculo.us and working group member of prototype.  Funnily enough williegoosen.com uses mootools, which uses prototype.  Amy has also made some rather cool tweet walls http://twistori.com/ and more recently http://letsfreckle.com/ a time sheeting app.</p>
<p>So I knew there were some tricks, having spent some time with ySlow in the weeks before, but was enlightened by the simple techniques that make a lot of difference.  Amy and Thomas did a great job of tag teaming through a rather dry subject and made it rather interesting, with one of the team walking through the slides and the other answering questions on a chat room style back-channel.</p>
<p>The talk started off with one of the rules being &#8220;only fix it if you need to&#8221; which i suppose makes a lot of sense. Tweaking performance can be a real fickle business, but if the users aren&#8217;t happy you have to fix it quick!</p>
<p>Test, don&#8217;t guess. benchmark. Make sure you can quantify the issue before you attempt any fixes so you can measure your improvement.</p>
<p>In some cases it will just be impossible to please your users but there are ways to keep people engaged and let them feel you are not ignoring them, while doing the heavy lifting in the background.</p>
<p><strong>Main areas of focus<br />
</strong> <em>Loading </em>-  connecting/spinning wheel, back-end speed, dns, latency * easiest win*.<br />
<em>Rendering </em>- white screen of death, you can see items still loading in the status bar.<br />
<em>Execution </em>- site stops responding after is completely rendered.</p>
<p>But to be honest there were just so many &#8220;oooh I should be doing that&#8221;, &#8220;woops shouldn&#8217;t be doing that&#8221; moments I will try and capture a bunch of them. Non-techy people can stop reading here.</p>
<p><strong>Do&#8217;s</strong></p>
<ul>
<li>Simple html = simple dom = faster rendering.</li>
<li>Use yslow and dommonster to identify issues.</li>
<li>JS scripts at the bottom of your pages.</li>
<li>Keep external assets to a minimum.</li>
<li>Set content expiry time frames correctly in the headers.</li>
<li>Yuicompressor + gzip to reduce .js .css .html size x5 smaller <a href="http://refresh-sf.com/yui/" target="_blank">http://refresh-sf.com/yui/</a>.</li>
<li>Merge .js files into a single .min.js file see <a href="http://getsprockets.org/" target="_blank">http://getsprockets.org/</a> and <a href="http://dailyjs.com/2010/01/27/pro-practices-1/" target="_blank">http://dailyjs.com/2010/01/27/pro-practices-1/</a>.</li>
<li>Reduce image size with http://smush.it 30% size reduction no loss.</li>
<li>Far future cache-headers (resolve updates issues by replacing with new file names).</li>
<li>Multiple asset hosts &#8211; assets on separate hosts than HTML allows for concurrent downloading.</li>
<li>Focus on whats important to users, webapps(gmail) focus on executing where as static pages (google search) focus on loading/rendering real fast.</li>
<li>Only HTML and maybe analytics JS should be load in subsequent loads rest should be cached.</li>
</ul>
<p><strong>Dont&#8217;s</strong></p>
<ul>
<li>JS in the middle of a page will block the execution of the whole page until its finished running, and can leave the user looking at an unrendered page.</li>
<li>404 requests really hurt.</li>
<li>Avoid slow external assets \ 3rd party libs.</li>
<li>Watch out for weight of frameworks, try microframeworks instead see underscore.js and emile.js.</li>
<li>Frameworks and widgets are frowned upon but if you have to script.aculo.us and jquery were mentioned</li>
</ul>
<p><strong>Interesting</strong></p>
<ul>
<li>Cool animation on how browser renders components does multiple sweeps over content to do the layout see <a href="http://en.boose.gr/gecko-reflow/">http://en.boose.gr/gecko-reflow/</a>.</li>
<li>Other open tabs can affect your sites performance or crash the whole browser.</li>
<li>-webkit-transforms are fast and very cool 2/3d stuff at 30-60fps for used on iphone and some android phones similar in jquery animation would be 5-10 fps.</li>
<li>If it takes long in real life to do something you could get away with a bit of lag, moving between forms and search should be instant.</li>
<li>Too many page assets becomes a performance hit conciser 3-5 streams for asset downloads being the default in a browser and will require cueing if more assest are required.</li>
<li>Dynatrace http://ajax.dynatrace.com/ IE tool for testing page loading.</li>
</ul>
<p>&#8220;Silence of more than four seconds become embarrassing because that implies a breaking of the thread of communication.&#8221; RB Miller(1968)</p>
<p>And if the conversations is still not happening after all the tuning, then its time to fake it!</p>
<ul>
<li>Perception is critical.</li>
<li>Tell people how long it will take &#8211; visual indication of progress can increase patience up to 5x.</li>
<li>User should feel like they are heard and their input is being considered.</li>
<li>Instant reaction even if action takes longer for action to complete.</li>
<li>Never leave the user bored.</li>
</ul>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://blog.williegoosen.com/2010/02/performance-bootcamp/&amp;t=Performance+Bootcamp" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=RT%3A%40willie_g+Performance+Bootcamp+-+http://tinyurl.com/26kbf75&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://blog.williegoosen.com/2010/02/performance-bootcamp/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://blog.williegoosen.com/2010/02/performance-bootcamp/&amp;title=Performance+Bootcamp" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-netvibes">
			<a href="http://www.netvibes.com/share?title=Performance+Bootcamp&amp;url=http://blog.williegoosen.com/2010/02/performance-bootcamp/" rel="nofollow" class="external" title="Submit this to Netvibes">Submit this to Netvibes</a>
		</li>
		<li class="shr-posterous">
			<a href="http://posterous.com/share?linkto=http://blog.williegoosen.com/2010/02/performance-bootcamp/&amp;title=Performance+Bootcamp&amp;selection=%20Presenters%20%3A%0D%0A%0D%0A%09Amy%20Hoy%20%40amyhoy%0D%0A%09Thomas%20Fuchs%20%40thomasfuchs%0D%0A%0D%0ASites%3A%0D%0A%0D%0A%09%20http%3A%2F%2Fmir.aculo.us%0D%0A%09%20http%3A%2F%2Fslash7.com%2Fabout%2F%0D%0A%0D%0A%20photo%20credit%3A%C2%A0Chris%20Shiflett%0D%0A%0D%0AA%20quote%20from%20Thomas%20Fuchs%27%20site...%20%22You%27re%20using%20my%20work%20every%20day%2C%20even%20if%20you%27re%20not%20aware%20of%20it%22.%20Thomas%20is%20the%20author%20of%20http%3A%2F%2Fscript" rel="nofollow" class="external" title="Post this to Posterous">Post this to Posterous</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://blog.williegoosen.com/2010/02/performance-bootcamp/&amp;title=Performance+Bootcamp" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://blog.williegoosen.com/2010/02/performance-bootcamp/&amp;title=Performance+Bootcamp" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22Performance%20Bootcamp%22&amp;body=Link: http://blog.williegoosen.com/2010/02/performance-bootcamp/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A %20Presenters%20%3A%0D%0A%0D%0A%09Amy%20Hoy%20%40amyhoy%0D%0A%09Thomas%20Fuchs%20%40thomasfuchs%0D%0A%0D%0ASites%3A%0D%0A%0D%0A%09%20http%3A%2F%2Fmir.aculo.us%0D%0A%09%20http%3A%2F%2Fslash7.com%2Fabout%2F%0D%0A%0D%0A%20photo%20credit%3A%C2%A0Chris%20Shiflett%0D%0A%0D%0AA%20quote%20from%20Thomas%20Fuchs%27%20site...%20%22You%27re%20using%20my%20work%20every%20day%2C%20even%20if%20you%27re%20not%20aware%20of%20it%22.%20Thomas%20is%20the%20author%20of%20http%3A%2F%2Fscript" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://blog.williegoosen.com/2010/02/performance-bootcamp/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://blog.williegoosen.com/2010/02/performance-bootcamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
