<?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>polaris14551 &#124; 摇光 &#187; 优化</title>
	<atom:link href="http://14551.org/tag/%e4%bc%98%e5%8c%96/feed" rel="self" type="application/rss+xml" />
	<link>http://14551.org</link>
	<description>一路向北，一個我從未觸及的花開之地. 亦或是哀鴻遍野…..未知的美丽</description>
	<lastBuildDate>Thu, 09 Sep 2010 11:48:52 +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>IIS6 实现301重定向</title>
		<link>http://14551.org/2009/07/iis-301-redirect.html</link>
		<comments>http://14551.org/2009/07/iis-301-redirect.html#comments</comments>
		<pubDate>Fri, 17 Jul 2009 14:49:22 +0000</pubDate>
		<dc:creator>摇光</dc:creator>
				<category><![CDATA[不明白]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[优化]]></category>
		<category><![CDATA[山起山落]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://14551.org/2009/07/iis-301-redirect.html</guid>
		<description><![CDATA[之前看了车大关于内容型网站面向搜索引擎蜘蛛和搜索用户的优化的日志，想来一个小网站何必要用上那么多二级域名，真不如子域名的方式，遂百度关于IIS的301重定向方式，发现竟然如此之简单。
下图是将域名 3736.net&#160; 301重定向至 www.3736.net

 

	相关日志
	
	再一次&#8230;
	使用Google App初步解决DZ7的邮件发送问题
	骚人组，不乱搞。
	逃不开微博的牢笼
	这个校园


]]></description>
			<content:encoded><![CDATA[<p>之前看了车大关于<a href="http://www.chedong.com/blog/archives/001475.html" target="_blank">内容型网站面向搜索引擎蜘蛛和搜索用户的优化</a>的日志，想来一个小网站何必要用上那么多二级域名，真不如子域名的方式，遂百度关于IIS的<a href="http://www.codesky.net/article/doc/200811/200811181945638.htm" target="_blank">301重定向方式</a>，发现竟然如此之简单。</p>
<p>下图是将域名 3736.net&#160; 301重定向至 <a href="http://www.3736.net">www.3736.net</a></p>
</p>
<p> <a href="http://14551.org/wp-content/uploads/2009/07/301.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="301重定向" border="0" alt="301重定向" src="http://14551.org/wp-content/uploads/2009/07/301_thumb.jpg" width="479" height="459" /></a></p>

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://14551.org/2006/06/one-more.html" title="再一次&#8230; (2006-06-10)">再一次&#8230;</a></li>
	<li><a href="http://14551.org/2009/07/smtp-mail-gmail-google-apps-discuz.html" title="使用Google App初步解决DZ7的邮件发送问题 (2009-07-24)">使用Google App初步解决DZ7的邮件发送问题</a></li>
	<li><a href="http://14551.org/2009/05/new-media-cafe.html" title="骚人组，不乱搞。 (2009-05-16)">骚人组，不乱搞。</a></li>
	<li><a href="http://14551.org/2009/12/microblog-3736.html" title="逃不开微博的牢笼 (2009-12-05)">逃不开微博的牢笼</a></li>
	<li><a href="http://14551.org/2008/09/campus.html" title="这个校园 (2008-09-15)">这个校园</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://14551.org/2009/07/iis-301-redirect.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dbanotes.net：Web前端优化最佳实践之内容篇</title>
		<link>http://14551.org/2008/09/best_practices_for_speeding_up_your_web_site_content.html</link>
		<comments>http://14551.org/2008/09/best_practices_for_speeding_up_your_web_site_content.html#comments</comments>
		<pubDate>Tue, 23 Sep 2008 16:07:34 +0000</pubDate>
		<dc:creator>摇光</dc:creator>
				<category><![CDATA[生活记事]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://www.14551.org/?p=418</guid>
		<description><![CDATA[ 作者: Fenng
 网址: http://www.dbanotes.net/web/best_practices_for_speeding_up_your_web_site_content.html
Yahoo! 的 Exceptional Performance team 在 Web 前端方面作出了卓越的贡献。广为人知的优化规则也由 13 条到 14 条，再到 20 条，乃至现在的 34 条&#8211;真是与时俱进啊。最新的 34 条也针对不同的角度做了分类。

面向内容的优化规则目前有 10 条。
1. 尽量减少 HTTP 请求 (Make Fewer HTTP Requests)
作为第一条，可能也是最重要的一条。根据 Yahoo! 研究团队的数据分析，有很大一部分用户访问会因为这一条而取得最大受益。有几种常见的方法能切实减少HTTP请求：

1) 合并文件，比如把多个CSS文件合成一个；
2) CSS Sprites 利用 CSS background 相关元素进行背景图绝对定位；参见：CSS Sprites: Image Slicing&#8217;s Kiss of Death
3) 图像地图
4) 内联图象 使用 data: URL scheme 在实际的页面嵌入图像数据.

2. 减少 DNS [...]]]></description>
			<content:encoded><![CDATA[<p><span class="byline"> 作者: <strong><a href="http://www.dbanotes.net/">Fenng</a></strong><br />
</span> 网址: <a class="permalink" href="http://www.dbanotes.net/web/best_practices_for_speeding_up_your_web_site_content.html">http://www.dbanotes.net/web/best_practices_for_speeding_up_your_web_site_content.html</a></p>
<p>Yahoo! 的 Exceptional Performance team 在 Web 前端方面作出了卓越的贡献。广为人知的<a href="http://developer.yahoo.com/performance/rules.html">优化规则</a>也由 13 条到 14 条，再到 20 条，乃至现在的 <a href="http://developer.yahoo.com/performance/">34 条</a>&#8211;真是与时俱进啊。最新的 34 条也针对不同的角度做了分类。</p>
<p><span id="more-418"></span></p>
<p>面向内容的优化规则目前有 10 条。</p>
<h4>1. 尽量减少 <acronym title="HyperText Transfer Protocol">HTTP</acronym> 请求 (Make Fewer HTTP Requests)</h4>
<p>作为第一条，可能也是最重要的一条。根据 Yahoo! 研究团队的数据分析，有很大一部分用户访问会因为这一条而取得最大受益。有几种常见的方法能切实减少HTTP请求：</p>
<ul>
<li>1) <strong>合并文件</strong>，比如把多个<a href="http://14551.org/tag/css" class="st_tag internal_tag" rel="tag" title="Posts tagged with CSS">CSS</a>文件合成一个；</li>
<li>2) <strong><a href="http://14551.org/tag/css" class="st_tag internal_tag" rel="tag" title="Posts tagged with CSS">CSS</a> Sprites</strong> 利用 <a href="http://14551.org/tag/css" class="st_tag internal_tag" rel="tag" title="Posts tagged with CSS">CSS</a> background 相关元素进行背景图<strong>绝对</strong>定位；参见：<a href="http://alistapart.com/articles/sprites">CSS Sprites: Image Slicing&#8217;s Kiss of Death</a></li>
<li>3) <strong>图像地图</strong></li>
<li>4) <strong>内联图象</strong> 使用 <a href="http://tools.ietf.org/html/rfc2397">data: URL scheme</a> 在实际的页面嵌入图像数据.</li>
</ul>
<h4>2. 减少 DNS  查找 (Reduce DNS Lookups)</h4>
<p>必须明确的一点，DNS 查找的开销是很大的。另外，我倒是觉得这是 Yahoo! 所有站点的通病，Yahoo！主站点可能还不够明显，一些分站点，存在明显的类似问题。对于国内站点来说，如果过多的使用了站外的 Widget ，也很容易引起过多的 DNS 查找问题。</p>
<h4>3. 避免重定向 (Avoid Redirects)</h4>
<p>不是绝对的避免，尽量减少。另外，应该注意一些不必要的重定向。比如对 Web 站点子目录的后面添加个 / (Slash) ，就能有效避免一次重定向。http://www.dbanotes.net/arch 与 http://www.dbanotes.net/arch<strong>/</strong> 二者之间是有差异的。如果是 Apache 服务器，通过配置 Alias 或mod_rewrite 或是 DirectorySlash 能够消除这个问题。</p>
<h4>4. 使得 Ajax 可缓存 (Make Ajax Cacheable)</h4>
<p>响应时间对 Ajax 来说至关重要，否则用户体验绝对好不到哪里去。提高响应时间的有效手段就是 Cache 。其它的一些优化规则对这一条也是有效的。</p>
<h4>5. 延迟载入组件 (Post-load Components)</h4>
<h4>6. 预载入组件 (Preload Components)</h4>
<p>上面两条严格说来，都是属于<strong>异步</strong>这个思想灵活运用的事儿。</p>
<h4>7. 减少 DOM 元素数量 (Reduce the Number of DOM Elements)</h4>
<h4>8. 切分组件到多个域 (Split Components Across Domains)</h4>
<p>主要的目的是提高页面组件并行下载能力。但不要跨太多域名，否则就和第二条有些冲突了。</p>
<h4>9. 最小化 iframe 的数量 (Minimize the Number of iframes)</h4>
<p>熟悉SEO 的朋友知道 iframe 是SEO 的大忌。针对前端优化来说 iframe 有其好处，也有其弊端，一分为二看问题吧。</p>
<h4>10. 杜绝 http 404 错误 (No 404s)</h4>
<p>对页面链接的充分测试加上对 Web 服务器 error 日志的不断跟踪能有效减少 404 错误，亦能提升用户体验。值得一提的是，<a href="http://14551.org/tag/css" class="st_tag internal_tag" rel="tag" title="Posts tagged with CSS">CSS</a> 与 Java Script 引起的 404 错误因为定位稍稍&#8221;难&#8221;一点而往往容易被忽略。</p>
<p>这是内容篇的 10 条。应该说具体引导性的内容还不够详细。逐渐会根据自己的理解补充上来。</p>

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://14551.org/2009/10/according-to-the-time-javascript.html" title="按时间显示提示语 (2009-10-23)">按时间显示提示语</a></li>
	<li><a href="http://14551.org/2009/10/adding-custom-google-maps-to-your-website.html" title="在Google地图上标记地点 (2009-10-15)">在Google地图上标记地点</a></li>
	<li><a href="http://14551.org/2009/07/iis-301-redirect.html" title="IIS6 实现301重定向 (2009-07-17)">IIS6 实现301重定向</a></li>
	<li><a href="http://14551.org/2008/09/47-javascript-plugins.html" title="47 Javascript plugins (2008-09-05)">47 Javascript plugins</a></li>
	<li><a href="http://14551.org/2008/09/css-websites.html" title="20个CSS和网页设计相关领域的站点 (2008-09-16)">20个CSS和网页设计相关领域的站点</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://14551.org/2008/09/best_practices_for_speeding_up_your_web_site_content.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
