<?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>Joseph Scott &#187; firefox</title>
	<atom:link href="http://josephscott.org/archives/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://josephscott.org</link>
	<description></description>
	<lastBuildDate>Thu, 29 Jul 2010 16:56:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
	<atom:link rel='hub' href='http://josephscott.org/?pushpress=hub'/>
<cloud domain='josephscott.org' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>CSS Border Radius Percentages and Elliptical Borders</title>
		<link>http://josephscott.org/archives/2010/01/css-border-radius-percentages-and-elliptical-borders/</link>
		<comments>http://josephscott.org/archives/2010/01/css-border-radius-percentages-and-elliptical-borders/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 02:09:52 +0000</pubDate>
		<dc:creator>Joseph Scott</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[internet-explorer]]></category>

		<guid isPermaLink="false">http://josephscott.org/?p=1814</guid>
		<description><![CDATA[When using CSS border radius I&#8217;ve always specified the radius in pixels (px), something like this: .round-box { border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; } This got me to wondering, does it support percentages as well? So I tried this: .round-box { border-radius: 5%; -moz-border-radius: 5%; -webkit-border-radius: 5%; } This worked in Firefox 3.6 but [...]


Related posts:<ol><li><a href='http://josephscott.org/archives/2009/09/showing-your-last-tweet-with-javascript/' rel='bookmark' title='Permanent Link: Showing Your Last Tweet With Javascript'>Showing Your Last Tweet With Javascript</a></li>
<li><a href='http://josephscott.org/archives/2009/11/browser-stats-and-five-years-of-firefox/' rel='bookmark' title='Permanent Link: Browser Stats and Five Years of Firefox'>Browser Stats and Five Years of Firefox</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>When using CSS border radius I&#8217;ve always specified the radius in pixels (px), something like this:</p>
<pre class="brush: css;">
.round-box {
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}
</pre>
<p>This got me to wondering, does it support percentages as well?  So I tried this:</p>
<pre class="brush: css;">
.round-box {
    border-radius: 5%;
    -moz-border-radius: 5%;
    -webkit-border-radius: 5%;
}
</pre>
<p>This worked in Firefox 3.6 but not in Chrome.  Some searching around revealed the <a href="https://developer.mozilla.org/en/CSS:-moz-border-radius">Mozilla -moz-border-radius</a> page.  For border radius it specifically mentions that it supports <a href="https://developer.mozilla.org/en/CSS/length">length units</a> as well as percentages:</p>
<blockquote><p>
A percentage, relative to the width of the box (the percentage is relative to the width even when specifying the radius for a height).
</p></blockquote>
<p>That page also mentioned support for elliptical borders.  To do that you add another radius value separated by a slash:</p>
<pre class="brush: css;">
.round-box {
    border-radius: 15px / 50px;
    -moz-border-radius: 15px / 50px;
    -webkit-border-radius: 15px / 50px;
}
</pre>
<p>The elliptical border worked on Chrome as well.  If you bend this tight enough you can get pretty close to a circle.</p>
<p>I wanted Internet Explorer to add support for border radius before; now that I&#8217;ve got even more radius toys to play with I&#8217;m practically begging.  I&#8217;m sorry Internet Explorer users but I&#8217;m tired of various border hacks when there are simple and clean CSS methods available.</p>


<p>Related posts:<ol><li><a href='http://josephscott.org/archives/2009/09/showing-your-last-tweet-with-javascript/' rel='bookmark' title='Permanent Link: Showing Your Last Tweet With Javascript'>Showing Your Last Tweet With Javascript</a></li>
<li><a href='http://josephscott.org/archives/2009/11/browser-stats-and-five-years-of-firefox/' rel='bookmark' title='Permanent Link: Browser Stats and Five Years of Firefox'>Browser Stats and Five Years of Firefox</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://josephscott.org/archives/2010/01/css-border-radius-percentages-and-elliptical-borders/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Browser Stats and Five Years of Firefox</title>
		<link>http://josephscott.org/archives/2009/11/browser-stats-and-five-years-of-firefox/</link>
		<comments>http://josephscott.org/archives/2009/11/browser-stats-and-five-years-of-firefox/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 04:07:56 +0000</pubDate>
		<dc:creator>Joseph Scott</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[stats]]></category>

		<guid isPermaLink="false">http://josephscott.org/?p=1581</guid>
		<description><![CDATA[There&#8217;s been a lot of talk about Firefox turning 5 years old today. Seems like a good time to take a look at web browser market share. One place for this data is the Global Stats page for StatCounter.com. Top 5 Browers Internet Explorer has 57.15%, Firefox 32.03% and then a virtual three way tie [...]


Related posts:<ol><li><a href='http://josephscott.org/archives/2008/12/wordpresscom-5-million-blogs/' rel='bookmark' title='Permanent Link: WordPress.com &#8211; 5 Million Blogs'>WordPress.com &#8211; 5 Million Blogs</a></li>
<li><a href='http://josephscott.org/archives/2010/01/just-hanging-out/' rel='bookmark' title='Permanent Link: Just Hanging Out'>Just Hanging Out</a></li>
<li><a href='http://josephscott.org/archives/2009/12/google-seo/' rel='bookmark' title='Permanent Link: Google SEO'>Google SEO</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s been a lot of talk about <a href="http://www.spreadfirefox.com/5years/en-US/">Firefox turning 5 years old</a> today.  Seems like a good time to take a look at web browser market share.  One place for this data is the <a href="http://gs.statcounter.com/">Global Stats page for StatCounter.com</a>.</p>
<h3>Top 5 Browers</h3>
<div class="wp-caption alignnone" style="width: 510px"><a href="http://gs.statcounter.com/#browser-ww-monthly-200810-200911"><img alt="" src="http://farm3.static.flickr.com/2759/4091766020_556d018a25.jpg" title="Top 5 Browsers, Bar Chart" width="500" height="293" /></a><p class="wp-caption-text">Top 5 Browsers, Bar Chart</p></div>
<p>Internet Explorer has 57.15%, Firefox 32.03% and then a virtual three way tie between Chrome (4.46%),  Safari (3.58%), and Opera (2%).  Here&#8217;s the bart chart version of this graph:</p>
<div class="wp-caption alignnone" style="width: 510px"><a href="http://gs.statcounter.com/#browser-ww-monthly-200810-200911-bar"><img alt="" src="http://farm3.static.flickr.com/2781/4091000499_1e7e32dcd5.jpg" title="Top 5 Browsers, Line Chart" width="500" height="323" /></a><p class="wp-caption-text">Top 5 Browsers, Line Chart</p></div>
<h3>Browser Versions</h3>
<div class="wp-caption alignnone" style="width: 510px"><a href="http://gs.statcounter.com/#browser_version-ww-monthly-200810-200911"><img alt="" src="http://farm3.static.flickr.com/2768/4091766232_5aa1a548a0.jpg" title="Browser Versions, Line Chart" width="500" height="293" /></a><p class="wp-caption-text">Browser Versions, Line Chart</p></div>
<p>IE 7 at 22.73%, IE 8 at 19.46%, Firefox 3.5 at 19.32%, IE 6 at 14.94% (<b>Ug!</b>), Firefox 3.0 at 11.22%, Safari 4.0 at 3% and Firefox 2.0 at 1.28%.  Everything else is below 1%.  Here&#8217;s the bar chart version:</p>
<div class="wp-caption alignnone" style="width: 510px"><a href="http://gs.statcounter.com/#browser_version-ww-monthly-200810-200911-bar"><img alt="" src="http://farm3.static.flickr.com/2717/4091000669_aa67dc597d.jpg" title="Browser Versions, Bar Chart" width="500" height="323" /></a><p class="wp-caption-text">Browser Versions, Bar Chart</p></div>
<p>The good news is that IE 7, IE 8 and Firefox 3.0+ accounts for 72% of the browser market.  The bad news is that IE 6 is still holding on at nearly 15%.</p>
<p>It would be great it other stats services like <a href="http://www.google.com/analytics/">Google Analytics</a> and <a href="http://www.quantcast.com/">Quantcast</a> offered this view on the global browser market.  Matt posted some <a href="http://en.blog.wordpress.com/2009/11/09/happy-birthday-firefox/">browser stats for WordPress.com</a>, which gets a pretty wide audience.</p>
<p>The only real browser stats that matter of course are the ones for your own site.  Here&#8217;s the browser stats for josephscott.org (from Google Analytics):</p>
<div class="wp-caption alignnone" style="width: 510px"><a href="http://www.flickr.com/photos/josephscott/4091103489/"><img alt="" src="http://farm3.static.flickr.com/2700/4091103489_9556a26807.jpg" title="Browser Stats - josephscott.org" width="500" height="152" /></a><p class="wp-caption-text">Browser Stats - josephscott.org</p></div>
<p>Firefox at 58.34%, IE at 19.86%, Safari at 10.70%, and Chrome at 6.92%.  The really good news is that IE 6 accounts for less than 4%.  Here&#8217;s the breakdown for operating systems:</p>
<div class="wp-caption alignnone" style="width: 510px"><a href="http://www.flickr.com/photos/josephscott/4091897820/"><img alt="" src="http://farm3.static.flickr.com/2756/4091897820_da0e1ae1fa.jpg" title="Operating System - josephscott.org visitors" width="500" height="136" /></a><p class="wp-caption-text">Operating System - josephscott.org visitors</p></div>
<p>Windows at 70.75%, Mac at 20.94%, and Linux at 7%.  Out of the Windows users XP accounts for 65.33%, Vista 27.59%, NT (Seriously?) 4.84%, and Server 2003 at 1.52%.  That&#8217;s a lot higher percentage for Mac and Linux than <a href="http://gs.statcounter.com/#os-ww-monthly-200810-200911">StatCounter Global Stats</a>, which isn&#8217;t too surprising considering my blog posts skew more towards Mac and open source topics.</p>


<p>Related posts:<ol><li><a href='http://josephscott.org/archives/2008/12/wordpresscom-5-million-blogs/' rel='bookmark' title='Permanent Link: WordPress.com &#8211; 5 Million Blogs'>WordPress.com &#8211; 5 Million Blogs</a></li>
<li><a href='http://josephscott.org/archives/2010/01/just-hanging-out/' rel='bookmark' title='Permanent Link: Just Hanging Out'>Just Hanging Out</a></li>
<li><a href='http://josephscott.org/archives/2009/12/google-seo/' rel='bookmark' title='Permanent Link: Google SEO'>Google SEO</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://josephscott.org/archives/2009/11/browser-stats-and-five-years-of-firefox/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>XMLHttpRequest (XHR) Uses Multiple Packets for HTTP POST?</title>
		<link>http://josephscott.org/archives/2009/08/xmlhttprequest-xhr-uses-multiple-packets-for-http-post/</link>
		<comments>http://josephscott.org/archives/2009/08/xmlhttprequest-xhr-uses-multiple-packets-for-http-post/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 15:53:54 +0000</pubDate>
		<dc:creator>Joseph Scott</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[xhr]]></category>

		<guid isPermaLink="false">http://josephscott.org/?p=1411</guid>
		<description><![CDATA[A recent Think Vitamin article, The Definitive Guide to GET vs POST, mentioned something that I hadn&#8217;t seen before about XMLHttpRequest (XHR). Their Rule #4 states: When using XMLHttpRequest, browsers implement POST as a two-step process (sending the headers first and then the data). This means that GET requests are more responsive – something you [...]


Related posts:<ol><li><a href='http://josephscott.org/archives/2010/07/xhr-ajax-performance-get-or-post/' rel='bookmark' title='Permanent Link: XHR / AJAX Performance &#8211; GET or POST?'>XHR / AJAX Performance &#8211; GET or POST?</a></li>
<li><a href='http://josephscott.org/archives/2009/11/browser-stats-and-five-years-of-firefox/' rel='bookmark' title='Permanent Link: Browser Stats and Five Years of Firefox'>Browser Stats and Five Years of Firefox</a></li>
<li><a href='http://josephscott.org/archives/2010/02/recommended-reading-steve-souders-high-performance-web-sites/' rel='bookmark' title='Permanent Link: Recommended Reading: Steve Souders, High Performance Web Sites'>Recommended Reading: Steve Souders, High Performance Web Sites</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A recent Think Vitamin article, <a href="http://carsonified.com/blog/dev/the-definitive-guide-to-get-vs-post/">The Definitive Guide to GET vs POST</a>, mentioned something that I hadn&#8217;t seen before about XMLHttpRequest (XHR).  Their Rule #4 states:</p>
<blockquote><p>
When using XMLHttpRequest, browsers implement POST as a two-step process (sending the headers first and then the data). This means that GET requests are more responsive – something you need in AJAX environments.
</p></blockquote>
<p>The claim is that even the smallest XHR will be sent using two packets if the request is done over HTTP POST instead of HTTP GET.  I don&#8217;t remember ever having heard this claim before.</p>
<p>Let me first say that performance issues for POST vs. GET probably shouldn&#8217;t be your top factor for deciding which one to use.  Make sure that you understand the implications of each and pick the right method for your request.  For most people I suspect the biggest factor will involve caching, not performance.  I was going to leave a comment on the article about this, but <a href="http://carsonified.com/blog/dev/the-definitive-guide-to-get-vs-post/#comment-13698">Simon beat me to it</a>.</p>
<p>I wasn&#8217;t the only one who wanted to find out more about XHR POST using multiple packets.  Fortunately someone else already <a href="http://carsonified.com/blog/dev/the-definitive-guide-to-get-vs-post/#comment-13556">asked that question</a> and the author <a href="http://carsonified.com/blog/dev/the-definitive-guide-to-get-vs-post/#comment-13569">replied</a>:</p>
<blockquote><p>
2. My claim is based on research done by Iain Lamb, cofounder of the Oddpost webmail startup that was acquired by Yahoo! and eventually became the basis for the all-new Yahoo! Mail.</p>
<p>His research showed “rather baffling finding: POST requests, made via the XMLHTTP object, send header and body data in separate tcp/ip packets [and therefore,] xmlhttp GET performs better when sending small amounts of data than an xmlhttp POST.”</p>
<p>That is why Yahoo includes the use of GET instead of POST as one of their high performance speed optimisation rules.
</p></blockquote>
<p>Simon Willison did some looking around and <a href="http://simonwillison.net/2009/Aug/18/performance/#comments">found more links for this</a>.  It was mentioned <a href="http://developer.yahoo.com/performance/rules.html">here</a> and <a href="http://yuiblog.com/blog/2007/03/01/performance-research-part-3/#comment-59531">here</a>, so it looks like <a href="http://lamb.cc/">Iain Lamb</a> did do this research, even though I couldn&#8217;t find a first person account of it.  This was enough information to make me curious, but not enough to answer all of my questions.  It was time to run some tests of my own.</p>
<p>So I updated my install of <a href="http://www.wireshark.org/">Wireshark</a> on Windows XP, turned off all of the packet reassembly options for HTTP decoding and started testing browsers.  My very simple XHR POST test page looked like this:</p>
<pre class="brush: xml;">
&lt;button type=&quot;button&quot; onclick=&quot;$.post('hello.txt', {name: 'Joseph'})&quot;&gt;XHR POST&lt;/button&gt;
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;&gt;&lt;/script&gt;
</pre>
<p>When the button is clicked an XHR POST request is made to hello.txt with the name=Joseph for a tiny amount of data.  The domain I tested on sent along some cookies as well, but still left enough room for the tiny POST payload to fit in a single TCP packet.</p>
<p>Here are the results of the tests that I ran:</p>
<ul>
<li>IE 6 &#8211; 2 packets</li>
<li>IE 7 &#8211; 2 packets</li>
<li>IE 8 &#8211; 2 packets</li>
<li><b>Firefox 3.0.13 &#8211; 1 packet</b></li>
<li><b>Firefox 3.5.2 &#8211; 1 packet</b></li>
<li>Opera 9.27 &#8211; 2 packets</li>
<li>Safari 4.0.3 &#8211; 2 packets</li>
<li>Chrome 2.0.172.43 &#8211; 2 packets</li>
</ul>
<p>The short version of this is pretty easy to see, all of the browsers except for Firefox will use at least 2 packets for an XHR done over HTTP POST.  When I saw that Safari sent 2 packets I figured that Chrome would as well, but I tested it anyway just to make sure.</p>
<p>I looked at the data size of each packet in IE 6; the first packet had 575 bytes of data and the second packet had 11 bytes of data.  This lined up with the POST request which indicated that the content length was 11 bytes.  The second packet consisted only of the POST data.  Because Firefox sent less data in the user-agent string I increased the POST data so that it would exceed the combined total of the two IE packets to make sure I wasn&#8217;t running into any odd packet fragmentation.  The second packet in Opera, Safari and Chrome was also only the 11 bytes of POST data.</p>
<p>If this were <a href="http://dsc.discovery.com/fansites/mythbusters/mythbusters.html">Myth Busters</a> I&#8217;d call this myth confirmed.  While it is true that not ALL browsers will always use two packets, it appears that the two packet process is the rule, not the exception.  And with <a href="http://gs.statcounter.com/#browser-ww-monthly-200807-200908">IE still the most widely used browser</a> it&#8217;s very likely that a large portion of your users fall into the two packet category.  If on the other hand 95% of your users happen to be using Firefox, then sure, you can skip thinking about this.</p>


<p>Related posts:<ol><li><a href='http://josephscott.org/archives/2010/07/xhr-ajax-performance-get-or-post/' rel='bookmark' title='Permanent Link: XHR / AJAX Performance &#8211; GET or POST?'>XHR / AJAX Performance &#8211; GET or POST?</a></li>
<li><a href='http://josephscott.org/archives/2009/11/browser-stats-and-five-years-of-firefox/' rel='bookmark' title='Permanent Link: Browser Stats and Five Years of Firefox'>Browser Stats and Five Years of Firefox</a></li>
<li><a href='http://josephscott.org/archives/2010/02/recommended-reading-steve-souders-high-performance-web-sites/' rel='bookmark' title='Permanent Link: Recommended Reading: Steve Souders, High Performance Web Sites'>Recommended Reading: Steve Souders, High Performance Web Sites</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://josephscott.org/archives/2009/08/xmlhttprequest-xhr-uses-multiple-packets-for-http-post/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>