<?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>PlanABC - 怿飞’s Blog &#187; 网站优化</title>
	<atom:link href="http://www.planabc.net/category/web-optimize/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.planabc.net</link>
	<description>落草为根—专注前端技术&#38;&#38;关注用户体验</description>
	<lastBuildDate>Sat, 24 Jul 2010 05:32:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>淘宝海量图片存储与CDN系统</title>
		<link>http://www.planabc.net/2010/06/30/storage_and_cdn_in_taobao/</link>
		<comments>http://www.planabc.net/2010/06/30/storage_and_cdn_in_taobao/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 05:44:17 +0000</pubDate>
		<dc:creator>怿飞</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[cdn]]></category>
		<category><![CDATA[taobao]]></category>

		<guid isPermaLink="false">http://www.planabc.net/?p=443</guid>
		<description><![CDATA[... ]]></description>
			<content:encoded><![CDATA[<p><object id="__sse4508477" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=cdn-100615125200-phpapp02&#038;stripped_title=cdn-4508477" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse4508477" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=cdn-100615125200-phpapp02&#038;stripped_title=cdn-4508477" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object></p>
<img src="http://www.planabc.net/?ak_action=api_record_view&id=443&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.planabc.net/2010/06/30/storage_and_cdn_in_taobao/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>各浏览器的并行连接数（同域名）</title>
		<link>http://www.planabc.net/2010/05/07/connections_per_server_supported_by_current_browsers/</link>
		<comments>http://www.planabc.net/2010/05/07/connections_per_server_supported_by_current_browsers/#comments</comments>
		<pubDate>Fri, 07 May 2010 02:21:27 +0000</pubDate>
		<dc:creator>怿飞</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://www.planabc.net/?p=419</guid>
		<description><![CDATA[


Browser
HTTP/1.1
HTTP/1.0


IE 6,7
2
4


IE 8
6
6


Firefox 3+
6
6


Safari 3+
4
4


Chrome 3+
4
4


Opera 10+
4
4



扩展阅读：《Roundup on Parallel Connections》... ]]></description>
			<content:encoded><![CDATA[<table cellspacing="6" cellpadding="4" border="0" style="margin:10px 0 10px 30px">
<tbody>
<tr>
<td><span style="text-decoration: underline;">Browser</span></td>
<td><span style="text-decoration: underline;">HTTP/1.1</span></td>
<td><span style="text-decoration: underline;">HTTP/1.0</span></td>
</tr>
<tr>
<td>IE 6,7</td>
<td align="center">2</td>
<td align="center">4</td>
</tr>
<tr>
<td>IE 8</td>
<td align="center">6</td>
<td align="center">6</td>
</tr>
<tr>
<td>Firefox 3+</td>
<td align="center">6</td>
<td align="center">6</td>
</tr>
<tr>
<td>Safari 3+</td>
<td align="center">4</td>
<td align="center">4</td>
</tr>
<tr>
<td>Chrome 3+</td>
<td align="center">4</td>
<td align="center">4</td>
</tr>
<tr>
<td>Opera 10+</td>
<td align="center">4</td>
<td align="center">4</td>
</tr>
</tbody>
</table>
<p>扩展阅读：<a href="http://www.stevesouders.com/blog/2008/03/20/roundup-on-parallel-connections/" target="_blank" title="Roundup on Parallel Connections">《Roundup on Parallel Connections》</a></p>
<img src="http://www.planabc.net/?ak_action=api_record_view&id=419&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.planabc.net/2010/05/07/connections_per_server_supported_by_current_browsers/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>页面中 CSS 加载方式的优化</title>
		<link>http://www.planabc.net/2008/03/25/css_onload_optimize/</link>
		<comments>http://www.planabc.net/2008/03/25/css_onload_optimize/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 05:04:52 +0000</pubDate>
		<dc:creator>怿飞</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.planabc.net/2008/03/25/css_onload_optimize/</guid>
		<description><![CDATA[1、应该将 CSS 放置于结构的上方（一般放置于 head 元素内）。CSS 是解释型语言，Firefox 和 IE 在等待 CSS 传输完成之前不会渲染任何东西。只有将 CSS 前置，才可在浏览器解析结构时，对页面进行渲染。
This causes the blank white screen problem. The page is totally blank until the stylesheet at the bottom is downloaded, on the order of 6-10 seconds for this page. The browser is waiting for the stylesheet to be loaded before it renders anything [...... ]]></description>
			<content:encoded><![CDATA[<p>1、应该将 CSS 放置于结构的上方（一般放置于 head 元素内）。CSS 是解释型语言，Firefox 和 IE 在等待 CSS 传输完成之前不会渲染任何东西。只有将 CSS 前置，才可在浏览器解析结构时，对页面进行渲染。</p>
<blockquote><p>This causes the blank white screen problem. The page is totally blank until the stylesheet at the bottom is downloaded, on the order of 6-10 seconds for this page. The browser is waiting for the stylesheet to be loaded before it renders anything else in the page, even the static text.</p></blockquote>
<p>导致的问题就是，页面会有一段时间“朴素”，突然之间又“华丽”，用户体验很不好。</p>
<p>2、尽量使用 &lt;link rel=&#8221;stylesheet&#8221; href=&#8221;http://www.planabc/yuanxin.css&#8221; type=&#8221;text/css&#8221;&gt; 的样式导入方式，而减少 @import 的使用，更勿使用多层嵌套的 @import 。因为在 IE 里， @import 相当于将 &lt;link&gt; 放在页面尾部。</p>
<blockquote><p>This is a valid syntax, but, even though it&#8217;s in the document&#8217;s HEAD, it breaks progressive rendering and instead causes the blank white screen and Flash of Unstyled Content problems.</p></blockquote>
<p>扩展阅读：</p>
<ul>
<li><a href="http://www.bluerobot.com/web/css/fouc.asp/" target="_blank" title="Flash of Unstyled Content (FOUC)">《Flash of Unstyled Content (FOUC)》</a></li>
</ul>
<img src="http://www.planabc.net/?ak_action=api_record_view&id=56&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.planabc.net/2008/03/25/css_onload_optimize/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>提高Web页面的性能（二）</title>
		<link>http://www.planabc.net/2008/03/23/high_performance_web_pages_ii/</link>
		<comments>http://www.planabc.net/2008/03/23/high_performance_web_pages_ii/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 13:53:47 +0000</pubDate>
		<dc:creator>怿飞</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://www.planabc.net/2008/03/23/high_performance_web_pages_ii/</guid>
		<description><![CDATA[最近 Yahoo! Exceptional Performance 在 《优化网站性能的 14 条规则》的基础上又增加了 20 条新的规则。


1. 尽早清除缓冲区
[server]


2. AJAX 请求使用“GET”方法
[server]


3. 延迟加载组件
[content]


4. 预加载组件
[content]


5. 减少 DOM 元素的数量
[content]


6. 跨域分离组件
[content]


7. 减少 iframes 的数量
[content]


8. 不出现 404
[content]


9. 减小 cookie 的体积
[cookie]


10. 为组件使用 cookie-free 的域名
[cookie]


11.减少访问 DOM 的次数
[javascript]


12. 开发巧妙的事件处理程序
[javascript]


13. 优先选择使用 &#60;link&#62; 而非 @import
[css]


14. 避免使用 filters
[css]


15. 优化图片
[images]


16. 优化 CSS sprites
[images]


17. 不要在 HTML 中缩放图片
[images]


18. 减小 favicon.ico 的体积并缓存
[images]


19. 保持组件在 25K 以下
[mobile]


20. 将组件分拆到多个文档中
[mobile]


更详细具体的介绍内容可看 Sto... ]]></description>
			<content:encoded><![CDATA[<p>最近 <a href="http://developer.yahoo.com/performance" target="_blank" title="Yahoo! Exceptional Performance">Yahoo! Exceptional Performance</a> 在 <a href="http://www.planabc.net/2008/03/22/high_performance_web_pages/" title="优化网站性能的 14 条规则">《优化网站性能的 14 条规则》</a>的基础上又增加了 20 条新的规则。</p>
<table border="0" width="500">
<tr>
<td>1. 尽早清除缓冲区</td>
<td align="right">[server]</td>
</tr>
<tr>
<td>2. AJAX 请求使用“GET”方法</td>
<td align="right">[server]</td>
</tr>
<tr>
<td>3. 延迟加载组件</td>
<td align="right">[content]</td>
</tr>
<tr>
<td>4. 预加载组件</td>
<td align="right">[content]</td>
</tr>
<tr>
<td>5. 减少 DOM 元素的数量</td>
<td align="right">[content]</td>
</tr>
<tr>
<td>6. 跨域分离组件</td>
<td align="right">[content]</td>
</tr>
<tr>
<td>7. 减少 iframes 的数量</td>
<td align="right">[content]</td>
</tr>
<tr>
<td>8. 不出现 404</td>
<td align="right">[content]</td>
</tr>
<tr>
<td>9. 减小 cookie 的体积</td>
<td align="right">[cookie]</td>
</tr>
<tr>
<td>10. 为组件使用 cookie-free 的域名</td>
<td align="right">[cookie]</td>
</tr>
<tr>
<td>11.减少访问 DOM 的次数</td>
<td align="right">[javascript]</td>
</tr>
<tr>
<td>12. 开发巧妙的事件处理程序</td>
<td align="right">[javascript]</td>
</tr>
<tr>
<td>13. 优先选择使用 &lt;link&gt; 而非 @import</td>
<td align="right">[css]</td>
</tr>
<tr>
<td>14. 避免使用 filters</td>
<td align="right">[css]</td>
</tr>
<tr>
<td>15. 优化图片</td>
<td align="right">[images]</td>
</tr>
<tr>
<td>16. 优化 CSS sprites</td>
<td align="right">[images]</td>
</tr>
<tr>
<td>17. 不要在 HTML 中缩放图片</td>
<td align="right">[images]</td>
</tr>
<tr>
<td>18. 减小 favicon.ico 的体积并缓存</td>
<td align="right">[images]</td>
</tr>
<tr>
<td>19. 保持组件在 25K 以下</td>
<td align="right">[mobile]</td>
</tr>
<tr>
<td>20. 将组件分拆到多个文档中</td>
<td align="right">[mobile]</td>
</tr>
</table>
<p>更详细具体的介绍内容可看 <a href="http://developer.yahoo.com/performance" target="_blank" title="Yahoo! Exceptional Performance">Stoyan Stefanov</a> 的 PPT：《High Performance Web Pages》（ PPT 与下同，如有需要原版可以 Email 我，邮箱见右侧）：</p>
<p><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=high-performance-web-pages-20-new-best-practices-120577522992998-3" allowfullscreen="true" allowscriptaccess="always" height="355" width="425"></embed></p>
<img src="http://www.planabc.net/?ak_action=api_record_view&id=55&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.planabc.net/2008/03/23/high_performance_web_pages_ii/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>提高Web页面的性能（一）</title>
		<link>http://www.planabc.net/2008/03/22/high_performance_web_pages/</link>
		<comments>http://www.planabc.net/2008/03/22/high_performance_web_pages/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 14:35:10 +0000</pubDate>
		<dc:creator>怿飞</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://www.planabc.net/2008/03/22/high_performance_web_pages/</guid>
		<description><![CDATA[优化网站性能的14条规则（更新）



1. 尽可能的减少 HTTP 的请求数
[content]


2. 使用 CDN（Content Delivery Network）
[server]


3. 添加 Expires 头(或者 Cache-control )
[server]


4. Gzip 组件 
[server]


5. 将 CSS 样式放在页面的上方
[css]


6. 将脚本移动到底部（包括内联的）
[javascript]


7. 避免使用 CSS 中的 Expressions 
[css]


8. 将 JavaScript 和 CSS 独立成外部文件
[javascript] [css]


9. 减少 DNS 查询 
[content]


10. 压缩 JavaScript 和 CSS (包括内联的)  
[javascript] [css]


11. 避免重定向 
[server]


12. 移除重复的脚本 
[javascript]


13. 配置实体标签（ETags）
[css]


14. 使 AJAX 缓存
[content]



详细请看：Best Practices for Speeding Up [...... ]]></description>
			<content:encoded><![CDATA[<p><strong>优化网站性能的14条规则</strong>（更新）</p>
<table border="0" width="500">
<tbody>
<tr>
<td>1. 尽可能的减少 HTTP 的请求数</td>
<td align="right">[content]</td>
</tr>
<tr>
<td>2. 使用 CDN（Content Delivery Network）</td>
<td align="right">[server]</td>
</tr>
<tr>
<td>3. 添加 Expires 头(或者 Cache-control )</td>
<td align="right">[server]</td>
</tr>
<tr>
<td>4. Gzip 组件 </td>
<td align="right">[server]</td>
</tr>
<tr>
<td>5. 将 CSS 样式放在页面的上方</td>
<td align="right">[css]</td>
</tr>
<tr>
<td>6. 将脚本移动到底部（包括内联的）</td>
<td align="right">[javascript]</td>
</tr>
<tr>
<td>7. 避免使用 CSS 中的 Expressions </td>
<td align="right">[css]</td>
</tr>
<tr>
<td>8. 将 JavaScript 和 CSS 独立成外部文件</td>
<td align="right">[javascript] [css]</td>
</tr>
<tr>
<td>9. 减少 DNS 查询 </td>
<td align="right">[content]</td>
</tr>
<tr>
<td>10. 压缩 JavaScript 和 CSS (包括内联的)  </td>
<td align="right">[javascript] [css]</td>
</tr>
<tr>
<td>11. 避免重定向 </td>
<td align="right">[server]</td>
</tr>
<tr>
<td>12. 移除重复的脚本 </td>
<td align="right">[javascript]</td>
</tr>
<tr>
<td>13. 配置实体标签（ETags）</td>
<td align="right">[css]</td>
</tr>
<tr>
<td>14. 使 AJAX 缓存</td>
<td align="right">[content]</td>
</tr>
</tbody>
</table>
<p>详细请看：<a target="_blank" href="http://developer.yahoo.com/performance/rules.html" title="Best Practices for Speeding Up Your Web Site">Best Practices for Speeding Up Your Web Site</a></p>
<p>如果具体想看下你网站在这14条规则下的表现，可以用 Yahoo 开发的 <a target="_blank" href="http://developer.yahoo.com/yslow/" title="YSlow">YSlow</a> 工具（Firefox 下 FireBug 的插件）。</p>
<img src="http://www.planabc.net/?ak_action=api_record_view&id=54&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.planabc.net/2008/03/22/high_performance_web_pages/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>URL 优化的一个技巧</title>
		<link>http://www.planabc.net/2008/03/18/url_optimize_tip/</link>
		<comments>http://www.planabc.net/2008/03/18/url_optimize_tip/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 04:38:51 +0000</pubDate>
		<dc:creator>怿飞</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://www.planabc.net/2008/03/18/url_optimize_tip/</guid>
		<description><![CDATA[今天 承志 看到的，感觉比较有收获，分享一下：
When generating hyperlinks, always include a trailing slash if possible. For instance, navigating to http://msdn.microsoft.com/ie takes one more roundtrip than http://msdn.microsoft.com/ie/. When the browser navigates to the /ie url, the server merely sends down a 301 to the /ie/ url. Both links work, but the second version is faster.
也就是说，在地址栏中发送 URL：http://msdn.microsoft.com/ie ，服务器将会产生一个 301 转向至 [...... ]]></description>
			<content:encoded><![CDATA[<p>今天 <a target="_blank" href="http://www.sharkui.com/" title="淘宝UED 承志">承志</a> 看到的，感觉比较有收获，分享一下：</p>
<blockquote><p>When generating hyperlinks, always include a trailing slash if possible. For instance, navigating to http://msdn.microsoft.com/ie takes one more roundtrip than http://msdn.microsoft.com/ie/. When the browser navigates to the /ie url, the server merely sends down a 301 to the /ie/ url. Both links work, but the second version is faster.</p></blockquote>
<p>也就是说，在地址栏中发送 URL：http://msdn.microsoft.com/ie ，服务器将会产生一个 301 转向至 http://msdn.microsoft.com/ie/。</p>
<p>所以直接发送 URL：http://msdn.microsoft.com/ie/ 速度将会更快，当然这种速度是感觉不到的，但优化应该“尽可能”。</p>
<p><strong>Update 08-3.20：</strong></p>
<p>今天乱游荡竟然看到了原话的出处，来自 IE 官方Blog 文章《<a target="_blank" href="http://blogs.msdn.com/ie/archive/2005/04/11/407189.aspx" title="Internet Explorer and Connection Limits">Internet Explorer and Connection Limits</a>》一文。</p>
<img src="http://www.planabc.net/?ak_action=api_record_view&id=52&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.planabc.net/2008/03/18/url_optimize_tip/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
