<?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>Binary Orders of Magnitude &#187; Web Performance</title>
	<atom:link href="http://www.sergeychernyshev.com/blog/category/web-performance/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sergeychernyshev.com/blog</link>
	<description>Sergey Chernyshev's blog about projects and web in general.</description>
	<lastBuildDate>Thu, 09 Sep 2010 04:34:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Performance as competitive advantage</title>
		<link>http://www.sergeychernyshev.com/blog/performance-as-competitive-advantage/</link>
		<comments>http://www.sergeychernyshev.com/blog/performance-as-competitive-advantage/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 04:28:00 +0000</pubDate>
		<dc:creator>Sergey Chernyshev</dc:creator>
				<category><![CDATA[Web Performance]]></category>

		<guid isPermaLink="false">http://www.sergeychernyshev.com/blog/?p=1046</guid>
		<description><![CDATA[Sometimes it&#8217;s hard to quantify the benefits of performance improvements. Many tools try to show you data and many rule-based tests and best practices exist to describe the goals, but there is still no clear connection in business people&#8217;s heads between particular site&#8217;s performance and savings or profits that performance optimization projects will bring.
As part [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it&#8217;s hard to quantify the benefits of performance improvements. Many tools try to show you data and many rule-based tests and best practices exist to describe the goals, but there is still no clear connection in business people&#8217;s heads between particular site&#8217;s performance and savings or profits that performance optimization projects will bring.</p>
<p>As part of <a href="http://www.showslow.com/">ShowSlow</a> project I&#8217;m working on making it easier to get the technical answers, but my experience with real world web development projects and Web Performance Meetups movement is showing that business answer is often more important then technology answer here as ultimate requirements of performance are not technical (like in scalability, for example), but psychological.</p>
<p>But I&#8217;d like to look at this business problem from a new perspective that is different from traditional tweaking / improvements / benefit approach. I think that speed of interaction is such an essential product quality that by breaking traditional web performance barriers companies can create fundamentally new products and make completely new things possible in the cloud-based web application space.</p>
<p>Of course I&#8217;m talking about today&#8217;s <a href="http://googleblog.blogspot.com/2010/09/search-now-faster-than-speed-of-type.html">Google Instant</a> announcement. New user experience they introduced completely breaks traditional search paradigm similar to how AdWords broke advertising paradigm. More over, achieving this technical goal and building the system of this complexity is extremely hard, but this is exactly what makes it easier for them to keep competition at bay.</p>
<p>Google is not the first company to bake web performance into a new product. Facebook before them created new experience with their activity feed pages using various innovative technologies like <a href="http://www.facebook.com/notes/facebook-engineering/bigpipe-pipelining-web-pages-for-high-performance/389414033919">BigPipe</a> and <a href="http://wiki.github.com/facebook/hiphop-php/">HipHop</a>, for example. Incredible statistics that brought them to the leading positions on the charts of the web heavily depend on ability to deliver next level of quality for their social product. Both Facebook and Google, invested in many backend and front end technologies that improve web performance and that allows them to keep unprecedented levels of user engagement.</p>
<p>It is great to see that competition between the two giants is moving web performance to the next level!</p>
<p>Again, competitive advantage cab be built by close attention to web application performance as well as new kind of products that would be impossible to develop with common latency levels and speed of interaction. To get to next levels of usability and to provide new experiences, companies must embrace web performance as a critical element in their product development.</p>
<p>What do you think? How can other big companies on the web change their products using high performance and get ahead of competition? Can you do that at your company?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sergeychernyshev.com/blog/performance-as-competitive-advantage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Philip Tellis at NY Web Performance, September 15</title>
		<link>http://www.sergeychernyshev.com/blog/philip-tellis-at-ny-web-performance-september-15/</link>
		<comments>http://www.sergeychernyshev.com/blog/philip-tellis-at-ny-web-performance-september-15/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 15:44:36 +0000</pubDate>
		<dc:creator>Sergey Chernyshev</dc:creator>
				<category><![CDATA[Meetup]]></category>
		<category><![CDATA[Web Performance]]></category>

		<guid isPermaLink="false">http://www.sergeychernyshev.com/blog/?p=1025</guid>
		<description><![CDATA[Summer is over, we&#8217;re all vacation-recharged and it&#8217;s time for some serious Web Performance! Come out of your sleepy summer mood and join us for next New York Web Performance session.
September 15 at 5:45PM (time is updated) at Logicworks:
RSVP here: http://www.meetup.com/Web-Performance-NY/calendar/14568561/
Philip Tellis (@bluesmoon) will be speaking at New York Web Performance group about Boomerang!
Philip is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.meetup.com/Web-Performance-NY/calendar/14568561/"><img style="float: right; margin-left: 1em; border: 0;" title="Guest speaker Philip Tellis talks about Boomerang at New York Web Performance Group" src="http://www.sergeychernyshev.com/blog/wp-content/uploads/2010/01/nywebperf_logo.png" alt="New York Web Performance Group Logo" width="150" height="99" /></a>Summer is over, we&#8217;re all vacation-recharged and it&#8217;s time for some serious Web Performance! Come out of your sleepy summer mood and join us for next <strong>New York Web Performance</strong> session.</p>
<p><strong>September 15 at 5:45PM (time is updated)</strong> at Logicworks:</p>
<blockquote><p>RSVP here: <a href="http://www.meetup.com/Web-Performance-NY/calendar/14568561/">http://www.meetup.com/Web-Performance-NY/calendar/14568561/</a></p></blockquote>
<p><a href="http://bluesmoon.info/">Philip Tellis</a> (<a href="http://twitter.com/bluesmoon">@bluesmoon</a>) will be speaking at New York Web Performance group about Boomerang!</p>
<p>Philip is a self described geek working for Yahoo! who recently presented Latency: <a href="http://en.oreilly.com/velocity2010/public/schedule/detail/13031">Why You Should Worry and What You Can Do About It</a> (<a href="http://www.youtube.com/watch?v=xVkyDbC2r0s">video</a>) at Velocity 2010.</p>
<p>His accomplishments include, but not limited to: </p>
<ul>
<li>Member of the <a href="http://developer.yahoo.com/performance/">Yahoo! Exceptional Performance Group</a> and <a href="http://security.yahoo.com/">Yahoo! Security Group</a></li>
<li>Creator of open source application <a href="http://yahoo.github.com/boomerang/doc/">Boomerang</a> (a RUM javascript beacon)</li>
<li>Author of the <a href="http://tech.bluesmoon.info/search/label/4.01-strict">4.01 Strict</a> web comic</li>
</ul>
<p><strong>Topic:</strong><br />
Philip will be presenting his new open source project Boomerang.js. Why it was written, how to implement it, and what can be done with the data.</p>
<p>For a little background on Boomerang.js:<br />
Boomerang is a piece of JavaScript that you add to your web pages, where it measures the performance of your website from your end user&#8217;s point of view. It has the ability to send this data back to your server for further analysis. With boomerang, you find out exactly how fast your users think your site is.<</p>
<p>This is an excellent example of RUM (real user monitoring) that allows sites to effectively and actively measure real page performance for their actual users as they see it.</p>
<p>Boomerang is open source and released under the BSD license.</p>
<p><strong>Agenda: (time is updated)</strong><br />
5:45 &#8211; arrive to the event, meet other members<br />
6:00 &#8211; Introductions &#038; Boomerang presentation by Philip Tellis<br />
6:45 &#8211; Q&#038;A<br />
7:00 &#8211; Open Discussion, Networking</p>
<p><strong>Location:</strong><br />
LogicWorks<br />
<a href="http://bit.ly/cK9cQx">155 Avenue of the Americas<br />
Fifth Floor<br />
New York, NY 10013</a></p>
<p>Directions: <a href="http://bit.ly/cK9cQx">http://bit.ly/cK9cQx</a><br />
Entrance View: <a href="http://bit.ly/a4DwrM">http://bit.ly/a4DwrM</a></p>
<p>See you all there!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sergeychernyshev.com/blog/philip-tellis-at-ny-web-performance-september-15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drop-in .htaccess is now on Github. Go fork it!</title>
		<link>http://www.sergeychernyshev.com/blog/drop-in-htaccess-is-now-on-github-go-fork-it/</link>
		<comments>http://www.sergeychernyshev.com/blog/drop-in-htaccess-is-now-on-github-go-fork-it/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 03:31:52 +0000</pubDate>
		<dc:creator>Sergey Chernyshev</dc:creator>
				<category><![CDATA[Web Performance]]></category>

		<guid isPermaLink="false">http://www.sergeychernyshev.com/blog/?p=931</guid>
		<description><![CDATA[A few people got interested in drop-in web performance .htaccess file so I decided to move it to a separate project on Github and invite all of you to participate in building a simple solution for web site performance that anyone can use!
github.com/sergeychernyshev/.htaccess
Go, fork it! We have a lot of work to do:

Stoyan Stephanov suggested [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://github.com/sergeychernyshev/.htaccess"><img style="float: right; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" /></a>A few people got interested in drop-in web performance .htaccess file so I decided to move it to a separate project on Github and invite all of you to participate in building a simple solution for web site performance that anyone can use!</p>
<blockquote><p><code><a href="http://github.com/sergeychernyshev/.htaccess">github.com/sergeychernyshev/.htaccess</a></code></p></blockquote>
<p><strong>Go, <a href="http://github.com/sergeychernyshev/.htaccess">fork it</a>!</strong> We have a lot of work to do:</p>
<ul>
<li><a href="http://www.phpied.com/">Stoyan Stephanov</a> <a href="http://www.sergeychernyshev.com/blog/speed-up-your-site-drop-in-htaccess-file/comment-page-1/#comment-17451">suggested</a> that we should move to whitelisting for gzip
</li>
<li><a href="http://paulirish.com/">Paul Irish</a> also <a href="http://www.sergeychernyshev.com/blog/speed-up-your-site-drop-in-htaccess-file/comment-page-1/#comment-17715">shared</a> .htaccess he created as part of <a href="http://github.com/paulirish/html5-boilerplate/blob/master/.htaccess">HTML5 boilerplate project</a></li>
<li>since I posted about this to Apache mailing list, I was also hoping to create <strong>fast-httpd.conf</strong> similar to <a href="http://github.com/sergeychernyshev/.htaccess/blob/master/fast-nginx.conf"><strong>fast-nginx.conf</strong></a> with a set of instructions for <strong>fast by default web servers</strong></li>
</ul>
<p>Check out the <a href="http://github.com/sergeychernyshev/.htaccess/issues">issue tracker</a>, add your own suggestions / bug reports and vote for those that you think are important.</p>
<p>P.S. If you&#8217;d like to include sample .htaccess file with your Subversion project, just run</p>
<blockquote><p><code>svn propedit svn:externals .</code></p></blockquote>
<p>and add following line to it:</p>
<blockquote><p><code>sample.htaccess http://svn.github.com/sergeychernyshev/.htaccess.git</code></p></blockquote>
<p>I did this in SVN Assets.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sergeychernyshev.com/blog/drop-in-htaccess-is-now-on-github-go-fork-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Meet for SPEED &#8211; hands on web performance sessions!</title>
		<link>http://www.sergeychernyshev.com/blog/meet-for-speed-hands-on-web-performance-sessions/</link>
		<comments>http://www.sergeychernyshev.com/blog/meet-for-speed-hands-on-web-performance-sessions/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 05:51:02 +0000</pubDate>
		<dc:creator>Sergey Chernyshev</dc:creator>
				<category><![CDATA[Meet for SPEED]]></category>
		<category><![CDATA[Meetup]]></category>
		<category><![CDATA[Web Performance]]></category>

		<guid isPermaLink="false">http://www.sergeychernyshev.com/blog/?p=918</guid>
		<description><![CDATA[Time for some serious speeding up for our web sites!
Come join us at Meet for SPEED event at Logicworks next Tuesday, August 24th at 7:00PM!

RSVP: http://www.meetup.com/Web-Performance-NY/calendar/14209517/
Bring your laptop and we&#8217;ll work together on optimizing our sites!
You can benefit even if you can&#8217;t edit your site right now &#8211; we will be happy to share the [...]]]></description>
			<content:encoded><![CDATA[<p>Time for some serious speeding up for our web sites!<br />
Come join us at <strong><a href="http://www.meetup.com/Web-Performance-NY/calendar/14209517/">Meet for SPEED</a></strong> event at <a href="http://www.logicworks.net/">Logicworks</a> next <strong>Tuesday, August 24th at 7:00PM</strong>!</p>
<p><a href="http://www.sergeychernyshev.com/blog/meet-for-speed-hands-on-web-performance-sessions/meetforspped/"><img style="float:none; margin: 2em; border: 0;" title="Tools: dynaTrace AJAX Edition at New York Web Performance Group" src="http://www.sergeychernyshev.com/blog/wp-content/uploads/2010/08/meetforspped.png" alt="" title="Meet for SPEED" width="354" height="100"/></a></p>
<p>RSVP: <a href="http://www.meetup.com/Web-Performance-NY/calendar/14209517/">http://www.meetup.com/Web-Performance-NY/calendar/14209517/</a></p>
<p><strong>Bring your laptop</strong> and we&#8217;ll work together on optimizing <strong>our sites</strong>!</p>
<p>You can benefit even if you can&#8217;t edit your site right now &#8211; we will be happy to share the knowledge.</p>
<p>We&#8217;ll all learn how to see <strong>what&#8217;s slow and how to make it fast</strong>!</p>
<p>Directions:<br />
LogicWorks<br />
<a href="http://www.logicworks.net/contact-us/location-phone">155 Avenue of the Americas<br />
Fifth Floor<br />
New York, NY 10013</a></p>
<p>Hope to see you all there!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sergeychernyshev.com/blog/meet-for-speed-hands-on-web-performance-sessions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dynaTrace AJAX Edition at Time Inc. next week</title>
		<link>http://www.sergeychernyshev.com/blog/dynatrace-ajax-edition-at-time-inc-next-week/</link>
		<comments>http://www.sergeychernyshev.com/blog/dynatrace-ajax-edition-at-time-inc-next-week/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 21:19:00 +0000</pubDate>
		<dc:creator>Sergey Chernyshev</dc:creator>
				<category><![CDATA[Meetup]]></category>
		<category><![CDATA[Web Performance]]></category>

		<guid isPermaLink="false">http://www.sergeychernyshev.com/blog/?p=907</guid>
		<description><![CDATA[
A special guest, Andreas Grabner is coming to New York City to present new features of upcoming dynaTrace AJAX Edition 2.0 at NY Web Performance Meetup!
dynaTrace AJAX Edition is a free tool that provides full JavaScript, Network, Rendering, DOM and XHR tracing for Internet Explorer 6, 7 &#38; 8. With the latest version the Ajax Edition [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.meetup.com/Web-Performance-NY/calendar/13964452/"><img style="float: right; margin-left: 1em; border: 0;" title="Tools: dynaTrace AJAX Edition at New York Web Performance Group" src="http://www.sergeychernyshev.com/blog/wp-content/uploads/2010/01/nywebperf_logo.png" alt="New York Web Performance Group Logo" width="150" height="99" /></a><br />
A special guest, <strong>Andreas Grabner</strong> is coming to New York City to present new features of upcoming <strong>dynaTrace AJAX Edition 2.0</strong> at <a href="http://www.meetup.com/Web-Performance-NY/calendar/13964452/">NY Web Performance Meetup</a>!</p>
<p>dynaTrace AJAX Edition is a free tool that provides full JavaScript, Network, Rendering, DOM and XHR tracing for <strong>Internet Explorer 6, 7 &amp; 8</strong>. With the latest version the Ajax Edition automatically analysis Best Practices in the areas of Browser Caching, Network Resources, Server-Side Activity, JavaScript/AJAX and also provides additional Key Performance Metrics that are essential for tracking the end-user perceived performance of a web site such as Time to First Impression, Time to onLoad or Time to Fully Loaded.</p>
<p><strong>Agenda: </strong><br />
6:00 &#8211; arrive to the event, meet other members<br />
6:30 &#8211; intro to web performance, industry updates by Sergey Chernyshev<br />
7:15 &#8211; dynaTrace AJAX Edition presentation by Andreas Grabner<br />
8:30 &#8211; Q&#038;A<br />
9:00 &#8211; Open Discussion, Networking</p>
<p><strong>Time Inc.</strong> offered their Watercooler meeting to host NY Web Performance meetup.  Refreshments will be served.</p>
<p>Host contact: <strong>Alla Gringaus, Web Technology Fellow</strong><br />
Questions: <strong>646 391 9671</strong></p>
<p>Location:<br />
<strong>Rockefeller Center<br />
Time &amp; Life Bldg<br />
<a href="http://bit.ly/cNBZ28" target="_blank">1271 Ave of the Americas (entrance 50th St and 6th Ave)<br />
2nd Floor, room #1<br />
New York, NY 10020</a></strong></p>
<p>Nearest Transit:<br />
<strong>50th St &#8211; 8th Ave (C, E)<br />
50th St &#8211; Ave of the Americas (F, V, B, D)<br />
49th St &#8211; 7th Ave (N, R, W)</strong></p>
<p>Get directions on Google Maps: <a href="http://bit.ly/cNBZ28">http://bit.ly/cNBZ28</a><br />
Street View for the Entrance: <a href="http://bit.ly/d4FsVf">http://bit.ly/d4FsVf</a></p>
<p>Come join us for a great presentation and discussion!</p>
<p>Please <a href="http://www.meetup.com/Web-Performance-NY/calendar/13964452/">RSVP on the group page @ Meetup.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sergeychernyshev.com/blog/dynatrace-ajax-edition-at-time-inc-next-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SLO-JS and how to speed up widgets</title>
		<link>http://www.sergeychernyshev.com/blog/slo-js-and-how-to-speed-up-widgets/</link>
		<comments>http://www.sergeychernyshev.com/blog/slo-js-and-how-to-speed-up-widgets/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 06:03:03 +0000</pubDate>
		<dc:creator>Sergey Chernyshev</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Web Performance]]></category>

		<guid isPermaLink="false">http://www.sergeychernyshev.com/blog/?p=842</guid>
		<description><![CDATA[This Thursday I gave a talk at NY Web Performance about third-party content and topic proven to be quite hot with many people in the audience, good Q&#38;A and group discussion afterwards. We talked about ad banners, widgets and tracking &#8220;pixels&#8221; and overall theme was lack of control and heavy reliance on 3rd parties.
Ads and [...]]]></description>
			<content:encoded><![CDATA[<p>This Thursday I gave a talk at <a href="http://www.meetup.com/Web-Performance-NY/calendar/13985715/">NY Web Performance</a> about <a href="http://www.techpresentations.org/Taming_third-party_content:_ads,_widgets,_trackers">third-party content</a> and topic proven to be quite hot with many people in the audience, good Q&amp;A and group discussion afterwards. We talked about ad banners, widgets and tracking &#8220;pixels&#8221; and overall theme was lack of control and heavy reliance on 3rd parties.</p>
<p>Ads and tracking pixels, unfortunately are quite complex and changing their behavior is hard, but <strong>widgets</strong> are a bit simpler to deal with and can probably be improved.</p>
<p>Working on my <a href="http://www.mediawikiwidgets.org/Main_Page">MediaWikiWidgets.org</a> project, I saw quite a few widgets and over time I started to realize that sales people&#8217;s magical promise of &#8220;easy integration with single line of JavaScript&#8221; which you can see on any site that provides widgets (and especially those that rely on widgets as primary method of distribution) is fundamentally flawed.</p>
<p>While it&#8217;s a great sales promise and simplifies integration, maintenance and gives a lot of control over user&#8217;s information, it brings slowness and introduces <a href="http://en.wikipedia.org/wiki/SPOF">SPOF</a>s to publisher&#8217;s sites.</p>
<p>To make people think about performance when they hear the magical sales pitch of <strong>Single line of JavaScript</strong>, I decided to abbreviate it to <strong title="Single line of JavaScript" style="border-bottom:1px dashed silver">SLO-JS</strong> which gives a very clear impression about the performance quality of this solution.</p>
<p>Now, next time when you see the magical words in vendor&#8217;s proposal, there is no need to explain or complain, <strong>just abbreviate it</strong> and this will hopefully give the right impression and make people think about testing the performance of the 3rd party source.</p>
<h2>Solutions</h2>
<p>It would&#8217;ve been pointless if there was no alternative to the SLO-JS, but in reality, it is not the only way to include code, it&#8217;s just the oldest and there are other, more reliable and fast alternatives. All we need to do is to explain how they work and make it easy for vendors to provide these alternatives to sites that care about performance.</p>
<p><strong>First alternative</strong> is quite simple &#8211; instead of copy-pasting a SLO-JS snippet, just let people copy-paste a mix of HTML, CSS (optional) and async JS call that will create a reasonable placeholder until data is loaded and will not block the rendering for the rest of the site.</p>
<p>A few vendors are already do that &#8211; <a href="http://disqus.com/">DISQUS</a>, for example, provides the following code:</p>
<pre style="margin-left: 1em; background: #ECE9D8; padding: 0.5em; border: 1px solid black; font-size: larger"><span style='color:#a65700; '>&lt;</span><span style='color:#800000; font-weight:bold; '>div</span><span style='color:#274796; '> </span><span style='color:#074726; '>id</span><span style='color:#808030; '>=</span><span style='color:#0000e6; '>"disqus_thread"</span><span style='color:#a65700; '>></span><span style='color:#a65700; '>&lt;/</span><span style='color:#800000; font-weight:bold; '>div</span><span style='color:#a65700; '>></span>
<span style='color:#a65700; '>&lt;</span><span style='color:#800000; font-weight:bold; '>script type="text/javascript"</span><span style='color:#a65700; '>></span>
  <span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>function</span><span style='color:#808030; '>(</span><span style='color:#808030; '>)</span> <span style='color:#800080; '>{</span>
   <span style='color:#800000; font-weight:bold; '>var</span> dsq <span style='color:#808030; '>=</span> document<span style='color:#808030; '>.</span>createElement<span style='color:#808030; '>(</span><span style='color:#0000e6; '>'script'</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
   dsq<span style='color:#808030; '>.</span>type <span style='color:#808030; '>=</span> <span style='color:#0000e6; '>'text/javascript'</span><span style='color:#800080; '>;</span> dsq<span style='color:#808030; '>.</span>async <span style='color:#808030; '>=</span> <span style='color:#0f4d75; '>true</span><span style='color:#800080; '>;</span>
   dsq<span style='color:#808030; '>.</span>src <span style='color:#808030; '>=</span> <span style='color:#0000e6; '>'http://mediawikiwidgets.disqus.com/embed.js'</span><span style='color:#800080; '>;</span>
   <span style='color:#808030; '>(</span>document<span style='color:#808030; '>.</span>getElementsByTagName<span style='color:#808030; '>(</span><span style='color:#0000e6; '>'head'</span><span style='color:#808030; '>)</span><span style='color:#808030; '>[</span><span style='color:#008c00; '>0</span><span style='color:#808030; '>]</span>
      <span style='color:#808030; '>||</span> document<span style='color:#808030; '>.</span>getElementsByTagName<span style='color:#808030; '>(</span><span style='color:#0000e6; '>'body'</span><span style='color:#808030; '>)</span><span style='color:#808030; '>[</span><span style='color:#008c00; '>0</span><span style='color:#808030; '>]</span><span style='color:#808030; '>)</span><span style='color:#808030; '>
         .</span>appendChild<span style='color:#808030; '>(</span>dsq<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
  <span style='color:#800080; '>}</span><span style='color:#808030; '>)</span><span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
<span style='color:#a65700; '>&lt;/</span><span style='color:#800000; font-weight:bold; '>script</span><span style='color:#a65700; '>></span></pre>
<p>Notice that it gives you a div tag with <i>disqus_thread</i> id to insert into your page (in this case the placeholder is just empty) and then uses <a href="http://www.stevesouders.com/blog/2009/04/27/loading-scripts-without-blocking/" title="great article by Steve Souders explaining the problem and solutions">asynchronous script tag</a> to load the data without blocking the rest of the page.</p>
<p>Transforming your code to take advantage of this probably requires a couple hours of work at best &#8211; just replace document.write with static HTML wrapper (with specific ID or class) and build additional DOM elements within the code, then use wrapper&#8217;s ID to insert the DOM tree and use the async tag to load all your JS code.</p>
<p>Use this pattern for good widget development, suggest similar approach to vendors that give you the most grief, and we&#8217;ll have faster web pages pretty soon.</p>
<p><strong>Another alternative</strong> I proposed at the Meetup is to download content on the back-end and insert it right into HTML with optional JavaScript used only for data load.</p>
<p>Most of the time content doesn&#8217;t change for each request and can be cached for minutes, hours or even days at a time. In some cases it never changes, especially for embeddable content like YouTube videos or Flickr photos.</p>
<p><a href="http://andrewschaaf.com/">Andrew Schaaf</a> proposed a name for it &#8211; <strong>Fetch and store JavaScript</strong> with great &#8220;superhero&#8221; abbreviation of <strong title="Fetch and store JavaScript" style="border-bottom:1px dashed silver">FAST-JS</strong>.</p>
<p>It is quite easy to implement them in the language of your choice and probably worthy of Open Source project that will enable appropriate caching mechanism and make it easy for people to implement fast solutions to SLO-JS.</p>
<p>It&#8217;s a bit harder to do then async widgets and requires some backend coding, but will allow reducing front-end complexity and amount of extra JS on the page to zero.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sergeychernyshev.com/blog/slo-js-and-how-to-speed-up-widgets/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>July 2010 Meetup: Taming third-party content: ads, widgets, trackers</title>
		<link>http://www.sergeychernyshev.com/blog/taming-third-party-content-ads-widgets-trackers/</link>
		<comments>http://www.sergeychernyshev.com/blog/taming-third-party-content-ads-widgets-trackers/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 19:40:58 +0000</pubDate>
		<dc:creator>Sergey Chernyshev</dc:creator>
				<category><![CDATA[Meetup]]></category>
		<category><![CDATA[Web Performance]]></category>

		<guid isPermaLink="false">http://www.sergeychernyshev.com/blog/?p=785</guid>
		<description><![CDATA[
Third party content slows down our site while we don&#8217;t have control over it.
Ad banners, JavaScript widgets, analytics trackers &#8211; they all contribute to site&#8217;s slowness and sometimes are biggest offender.
On July 22nd, I&#8217;m going to give a presentation entitled &#8220;Taming third-party content: ads, widgets, trackers&#8221; at New York Web Performance Meetup.
If you run a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.meetup.com/Web-Performance-NY/calendar/13985715/"><img style="float: right; margin-left: 1em; border: 0;" title="New York Web Performance Group" src="http://www.sergeychernyshev.com/blog/wp-content/uploads/2010/01/nywebperf_logo.png" alt="New York Web Performance Group Logo" width="150" height="99" /></a><br />
<strong>Third party content slows down</strong> our site while we don&#8217;t have control over it.</p>
<p><strong>Ad banners, JavaScript widgets, analytics trackers</strong> &#8211; they all contribute to site&#8217;s slowness and sometimes are biggest offender.</p>
<p>On <strong>July 22nd</strong>, I&#8217;m going to give a presentation entitled &#8220;<strong>Taming third-party content: ads, widgets, trackers</strong>&#8221; at <a href="http://www.meetup.com/Web-Performance-NY/calendar/13985715/">New York Web Performance Meetup</a>.</p>
<p>If you run a web site, you most likely have 3rd party content and it&#8217;s most likely slowing you down.<br />
Come and let&#8217;s talk how we can solve this!</p>
<p>Please <a href="http://www.meetup.com/Web-Performance-NY/calendar/13985715/">RSVP on Meetup.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sergeychernyshev.com/blog/taming-third-party-content-ads-widgets-trackers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show Slow now automatically monitors your URLs!</title>
		<link>http://www.sergeychernyshev.com/blog/show-slow-now-automatically-monitors-your-urls/</link>
		<comments>http://www.sergeychernyshev.com/blog/show-slow-now-automatically-monitors-your-urls/#comments</comments>
		<pubDate>Fri, 28 May 2010 05:01:05 +0000</pubDate>
		<dc:creator>Sergey Chernyshev</dc:creator>
				<category><![CDATA[ShowSlow]]></category>
		<category><![CDATA[Web Performance]]></category>

		<guid isPermaLink="false">http://www.sergeychernyshev.com/blog/?p=683</guid>
		<description><![CDATA[I&#8217;ve been dreaming about this for a while now and then Aaron and I were working on different parts of the system which allowed that to happen and now it&#8217;s possible!
Please welcome automated YSlow and Page Speed monitoring using Show Slow!
Now all you need to do is to register an account and enter your URL [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.showslow.com/my.php"><img style="float: right; margin-left: 1em; border: 0;" title="Show Slow Automation" src="http://www.sergeychernyshev.com/blog/wp-content/uploads/2010/05/showslow_automation.png" alt="" width="100" height="100" /></a>I&#8217;ve been dreaming about this for a while now and then Aaron and I were working on different parts of the system which allowed that to happen and now it&#8217;s possible!</p>
<p>Please welcome <strong>automated YSlow and Page Speed monitoring using Show Slow</strong>!</p>
<p>Now all you need to do is to register an account and <a href="http://www.showslow.com/my.php">enter your URL</a> and the rest will be taken care of. Show Slow will fire YSlow and Page Speed at your site and collect statistics on a daily basis so you can just sit back and enjoy the graphs!</p>
<p>You can see the results on <a href="http://www.showslow.com/list.php?id=alexa">Alexa Top 100 tab</a> that I also added to ShowSlow.com showcase performance for most popular sites of the internet.</p>
<p>Due to limited resources, ShowSlow.com allows for only one URL per user account to be monitored, but I&#8217;m looking for ways to remove or at least increase this limit.</p>
<p>I hope you&#8217;ll enjoy the automation and please forward it to everyone around you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sergeychernyshev.com/blog/show-slow-now-automatically-monitors-your-urls/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Concepts: Automated site speed-up service. Really!</title>
		<link>http://www.sergeychernyshev.com/blog/automated-site-speed-up-service-really/</link>
		<comments>http://www.sergeychernyshev.com/blog/automated-site-speed-up-service-really/#comments</comments>
		<pubDate>Fri, 28 May 2010 03:26:48 +0000</pubDate>
		<dc:creator>Sergey Chernyshev</dc:creator>
				<category><![CDATA[Concepts]]></category>
		<category><![CDATA[Web Performance]]></category>

		<guid isPermaLink="false">http://www.sergeychernyshev.com/blog/?p=697</guid>
		<description><![CDATA[First, a short intro &#8211; I&#8217;ve been thinking of what to do with all the ideas I&#8217;m coming up and I&#8217;d like to try posting blog entries under &#8220;Concepts&#8221; category. I&#8217;ll accept comments and will write additions to the concept there as well. We&#8217;ll see what it&#8217;ll be like ;)
On my way home today, I [...]]]></description>
			<content:encoded><![CDATA[<p><em>First, a short intro &#8211; I&#8217;ve been thinking of what to do with all the ideas I&#8217;m coming up and I&#8217;d like to try posting blog entries under &#8220;<a href="http://www.sergeychernyshev.com/blog/category/concepts/">Concepts</a>&#8221; category. I&#8217;ll accept comments and will write additions to the concept there as well. We&#8217;ll see what it&#8217;ll be like ;)</em></p>
<p>On my way home today, I was thinking again about <a href="http://developer.yahoo.com/performance/rules.html#preload">asset pre-loading</a> (<a href="http://stevesouders.com/hpws/post-onload.php">example</a>, <a href="http://stevesouders.com/hpws/dynamic-inlining.php">example with inlining</a>) after page on-load event (for faster subsequent page loads) for <a href="http://www.showslow.com/">ShowSlow</a> and realized that it can be created as a very good &#8220;easily installable with one line of JavaScript&#8221; service!</p>
<p>I think all the key components to this technology already exist!</p>
<p>First we need to know <strong>what to pre-load</strong> and here comes Google Analytics API and it&#8217;s <a href="http://code.google.com/apis/analytics/docs/gdata/gdataReferenceDimensionsMetrics.html#nextPagePath">Content / ga:nextPagePath</a> dimension that will give us all the probabilities for next pages that users visit.</p>
<p><img src="http://www.sergeychernyshev.com/blog/wp-content/uploads/2010/05/1275017048640_381a3.png" alt="" title="Site waterfall diagram visualizing data available in HAR exports" width="250" height="400" style="float: right; margin-left: 1em; border: 0;"/> Now, when we have page URLs, we need to understand <strong>which assets to load</strong> from those pages and that can be solved by running headless Firefox with Firebug and <a href="http://www.softwareishard.com/blog/netexport/">NetExport extension</a> configured to auto-fire <a href="http://groups.google.com/group/http-archive-specification">HAR</a> packages at <a href="http://www.sergeychernyshev.com/blog/limit-urls-dbupgrade-and-har-beacon-in-showslow/">beacons</a> on the server.</p>
<p>HAR contains all the assets and all kind of useful information about the contents of those files so tool can make infinitely complex decisions regarding picking the right URL to pre-load from simple &#8220;download all JS and CSS files&#8221; to &#8220;only download small assets that have infinite expiration set&#8221; and so on (this can be a key to company&#8217;s <strong>secret ingredient that is hard to replicate</strong>). This step can be done on a periodic basis as to run it in real time is just unrealistic.</p>
<p>The last piece is probably the most trivial &#8211; actual <strong>script tag</strong> that asynchronously loads the code from the 3rd party server with current page&#8217;s URL as parameter which in turn <strong>post-loads all the assets</strong> into hidden image objects or something to prevent asset execution (for JS and CSS).</p>
<p>So, <strong>all user will have to provide is site&#8217;s homepage URL</strong> and approve <a href="http://code.google.com/apis/analytics/docs/gdata/gdataAuthentication.html">GA data import through OAuth</a>. After that, data will be periodically re-synced and re-crawled for constant improvement.</p>
<p>Some additional calls on the pages (e.g. at the top of the page and at the end of the page) can measure load times to close feedback loop for asset picking optimization algorithm.</p>
<p>It <strong>can be</strong> a great service <strong>provided by Google Analytics</strong> themselves, e.g. &#8220;<strong>for $50/mo</strong> we will not only measure your site, but speed it up as well&#8221; &#8211; they already have data and tags in people&#8217;s pages, the only thing left is crawling and data crunching that they do quite successfully so far.</p>
<p>Anyone wants to hack it together? Please post your comments! ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sergeychernyshev.com/blog/automated-site-speed-up-service-really/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Fast Apache by default</title>
		<link>http://www.sergeychernyshev.com/blog/fast-apache-by-default/</link>
		<comments>http://www.sergeychernyshev.com/blog/fast-apache-by-default/#comments</comments>
		<pubDate>Wed, 26 May 2010 05:24:03 +0000</pubDate>
		<dc:creator>Sergey Chernyshev</dc:creator>
				<category><![CDATA[Web Performance]]></category>

		<guid isPermaLink="false">http://www.sergeychernyshev.com/blog/?p=684</guid>
		<description><![CDATA[After using drop-in .htaccess file in a few of my projects I realized that people have problems with it because their Apache doesn&#8217;t have the modules enabled.
Then I realized that apache doesn&#8217;t have any of those three modules (mod_deflate, mod_rewrite and mod_expires) enabled by default.
It means I found a first project that needs some &#8220;Fast [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://httpd.apache.org/"><img style="float: right; margin-left: 1em; border: 0;" src="http://www.sergeychernyshev.com/blog/wp-content/uploads/2010/05/feather-small.gif" alt="" title="Apache logo" width="203" height="61"/></a>After using <a href="http://www.sergeychernyshev.com/blog/speed-up-your-site-drop-in-htaccess-file/">drop-in .htaccess</a> file in a few of my projects I realized that people have problems with it because their Apache doesn&#8217;t have the modules enabled.</p>
<p>Then I realized that apache doesn&#8217;t have any of those three modules (<a href="http://httpd.apache.org/docs/2.2/mod/mod_deflate.html">mod_deflate</a>, <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> and <a href="http://httpd.apache.org/docs/2.2/mod/mod_expires.html">mod_expires</a>) enabled by default.</p>
<p>It means I found a first project that needs some &#8220;Fast by default&#8221; treatment!</p>
<p>If someone knows some Apache developers, please let me know, otherwise I&#8217;ll just send email to a mailing list (their Bugzilla is down, at the moment).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sergeychernyshev.com/blog/fast-apache-by-default/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
