<?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>Heluyao&#039;s Blog &#187; 优化</title>
	<atom:link href="http://www.11gz.com/blog/tag/optimization-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.11gz.com/blog</link>
	<description>设计、开发路上的点点滴滴...</description>
	<lastBuildDate>Tue, 20 Jul 2010 03:52:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://www.11gz.com/blog/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>It&#8217;s Beautiful</title>
		<link>http://www.11gz.com/blog/2010/03/29/its-beautiful/</link>
		<comments>http://www.11gz.com/blog/2010/03/29/its-beautiful/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 06:58:15 +0000</pubDate>
		<dc:creator>heluyao</dc:creator>
				<category><![CDATA[html/css/xml/xsl]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://www.11gz.com/blog/?p=509</guid>
		<description><![CDATA[
点击图片查看大图

	
	页面中 CSS 加载方式的优化
	推荐一款js css压缩工具TBCompressor
	你会使用html5 doctype吗？
	YUI Compressor online在线压缩js
	HTML5来了

... ]]></description>
			<content:encoded><![CDATA[<p><a title="漂亮的代码-点击查看大图" href="http://pic.yupoo.com/heluyao/94251913c448/t843curw.png" target="_blank"><img class="alignnone" title="Beautiful Code" src="http://pic.yupoo.com/heluyao/94251913c448/medium.png" alt="" width="500" height="500" /></a></p>
<p>点击图片查看大图</p>

	<ul class="st-related-posts">
	<li><a href="http://www.11gz.com/blog/2008/05/09/css-load-way-optimization/" title="页面中 CSS 加载方式的优化 (2008年05月9日)">页面中 CSS 加载方式的优化</a></li>
	<li><a href="http://www.11gz.com/blog/2009/02/16/js-css-compression-TBCompressor/" title="推荐一款js css压缩工具TBCompressor (2009年02月16日)">推荐一款js css压缩工具TBCompressor</a></li>
	<li><a href="http://www.11gz.com/blog/2010/03/20/html5-doctype-use/" title="你会使用html5 doctype吗？ (2010年03月20日)">你会使用html5 doctype吗？</a></li>
	<li><a href="http://www.11gz.com/blog/2009/08/28/yui-compressor-online-js/" title="YUI Compressor online在线压缩js (2009年08月28日)">YUI Compressor online在线压缩js</a></li>
	<li><a href="http://www.11gz.com/blog/2010/03/22/html5-come/" title="HTML5来了 (2010年03月22日)">HTML5来了</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.11gz.com/blog/2010/03/29/its-beautiful/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>YUI Compressor online在线压缩js</title>
		<link>http://www.11gz.com/blog/2009/08/28/yui-compressor-online-js/</link>
		<comments>http://www.11gz.com/blog/2009/08/28/yui-compressor-online-js/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 09:57:52 +0000</pubDate>
		<dc:creator>heluyao</dc:creator>
				<category><![CDATA[JS/Ajax/AS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[优化]]></category>
		<category><![CDATA[压缩]]></category>

		<guid isPermaLink="false">http://www.11gz.com/blog/?p=437</guid>
		<description><![CDATA[分享一个利用YUI Compressor在线压缩js的网页。之前推荐过的TBCompressor其实就是这款压缩工具，只是TBueder将其封装了一下。该工具本地安装需要java的支持，有点麻烦，今天发现一个在线的，挺方... ]]></description>
			<content:encoded><![CDATA[<p>分享一个利用<a href="http://www.julienlecomte.net/yuicompressor/">YUI Compressor</a>在线压缩js的网页。</p>
<p><em><strong>链接地址：<a href="http://yui.2clics.net/" title="YUI Compressor online - http://yui.2clics.net/">YUI Compressor online</a></strong></em></p>
<p>之前推荐过的<a href="http://www.11gz.com/blog/?p=371">TBCompressor</a>其实就是这款压缩工具，只是TBueder将其封装了一下。该工具本地安装需要java的支持，有点麻烦，今天发现一个在线的，挺方便了！只是目前还不能压缩css，挺遗憾的~~！</p>

	<ul class="st-related-posts">
	<li><a href="http://www.11gz.com/blog/2009/02/16/js-css-compression-TBCompressor/" title="推荐一款js css压缩工具TBCompressor (2009年02月16日)">推荐一款js css压缩工具TBCompressor</a></li>
	<li><a href="http://www.11gz.com/blog/2008/12/15/retreat-separation-backward/" title="预留退路+分离javascript+向后兼容性 (2008年12月15日)">预留退路+分离javascript+向后兼容性</a></li>
	<li><a href="http://www.11gz.com/blog/2008/05/09/css-load-way-optimization/" title="页面中 CSS 加载方式的优化 (2008年05月9日)">页面中 CSS 加载方式的优化</a></li>
	<li><a href="http://www.11gz.com/blog/2008/04/17/two-month-javascript-learn/" title="近两个月加强javascript的学习 (2008年04月17日)">近两个月加强javascript的学习</a></li>
	<li><a href="http://www.11gz.com/blog/2009/01/09/simple-beautification-select/" title="简单解决“丑陋”的select下拉框 (2009年01月9日)">简单解决“丑陋”的select下拉框</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.11gz.com/blog/2009/08/28/yui-compressor-online-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>推荐一款js css压缩工具TBCompressor</title>
		<link>http://www.11gz.com/blog/2009/02/16/js-css-compression-TBCompressor/</link>
		<comments>http://www.11gz.com/blog/2009/02/16/js-css-compression-TBCompressor/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 13:18:32 +0000</pubDate>
		<dc:creator>heluyao</dc:creator>
				<category><![CDATA[html/css/xml/xsl]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[优化]]></category>
		<category><![CDATA[压缩]]></category>

		<guid isPermaLink="false">http://www.11gz.com/blog/?p=371</guid>
		<description><![CDATA[　　淘宝是怎么压缩js和css的？他们使用的是YUI Compressor:
The YUI Compressor is a JavaScript compressor which, in addition to removing comments and white-spaces, obfuscates local variables using the smallest possible variable name. This ... ]]></description>
			<content:encoded><![CDATA[<p>　　淘宝是怎么压缩js和css的？他们使用的是<a href="http://www.julienlecomte.net/yuicompressor/"><span style="color: #0066cc;">YUI Compressor</span></a>:</p>
<blockquote><p>The YUI Compressor is a JavaScript compressor which, in addition to removing comments and white-spaces, obfuscates local variables using the smallest possible variable name. This obfuscation is safe, even when using constructs such as ‘eval’ or ‘with’ (although the compression is not optimal is those cases) Compared to jsmin, the average savings is around 20%.</p>
<p>The YUI Compressor is also able to safely compress CSS files. The decision on which compressor is being used is made on the file extension (js or css)</p></blockquote>
<blockquote><p>　　淘宝前端的开发环境以Windows居多。为了方便使用，对YUICompressor做了层简单的封装，称之为TBCompressor.</p></blockquote>
<p>　　今天偶自己试用了一下，的确是非同小可。不仅操作方法简单，而且效率也非常的高！唯一有点麻烦的就是需要安装JDK，并配置JAVA_HONE环境变量。偶本人虽然不懂JAVA，但是以前在学习一本关于AJAX的书时配置过JAVA，因此这次轻车熟路般的顺利完成。</p>
<p>　　测试了几次，大概效率是，1/2！非常不错了吧！</p>
<p>介绍：<a href="http://lifesinger.org/blog/?p=464"><span style="color: #0066cc;">http://lifesinger.org/blog/?p=464</span></a></p>
<p>下载：<a href="http://lifesinger.org/download.php"><span style="color: #0066cc;">tbcompressor-2.4.2.zip</span></a> (808.3 KB)</p>
<p>　　之前一直都使用ECMAScript Cruncher，也是一款非常不错的文件最小化和变量名替换的工具。作者：Thomas Loo。操作起来略显复杂(与TBCompressor)，需要在Windows下运行Esc，并输入一段代码。可以按等级优化代码，一共分四级。这里就不意义介绍了。有兴趣可以去<a href="http://www.saltstorm.net/depo/esc/">http://www.saltstorm.net/depo/esc/</a>查看相关资料并下载试用！</p>

	<ul class="st-related-posts">
	<li><a href="http://www.11gz.com/blog/2009/08/28/yui-compressor-online-js/" title="YUI Compressor online在线压缩js (2009年08月28日)">YUI Compressor online在线压缩js</a></li>
	<li><a href="http://www.11gz.com/blog/2008/05/09/css-load-way-optimization/" title="页面中 CSS 加载方式的优化 (2008年05月9日)">页面中 CSS 加载方式的优化</a></li>
	<li><a href="http://www.11gz.com/blog/2008/05/20/web-page-gray-css/" title="让网页变灰色，一句css就搞定 (2008年05月20日)">让网页变灰色，一句css就搞定</a></li>
	<li><a href="http://www.11gz.com/blog/2008/03/08/without-limiting-the-generality-of-min-width/" title="让一个层有个最小宽度，但不局限于这个宽度 (2008年03月8日)">让一个层有个最小宽度，但不局限于这个宽度</a></li>
	<li><a href="http://www.11gz.com/blog/2010/03/19/cssboxmodel/" title="补习:CSS盒模型 (2010年03月19日)">补习:CSS盒模型</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.11gz.com/blog/2009/02/16/js-css-compression-TBCompressor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>页面中 CSS 加载方式的优化</title>
		<link>http://www.11gz.com/blog/2008/05/09/css-load-way-optimization/</link>
		<comments>http://www.11gz.com/blog/2008/05/09/css-load-way-optimization/#comments</comments>
		<pubDate>Thu, 08 May 2008 16:45:28 +0000</pubDate>
		<dc:creator>heluyao</dc:creator>
				<category><![CDATA[html/css/xml/xsl]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://11gz-blog.528u.com/blog/?p=110</guid>
		<description><![CDATA[1、应该将 CSS 放置于结构的上方（一般放置于 head 元素内）。CSS 是解释型语言，Firefox 和 IE 在等待 CSS 传输完成之前不会渲染任何东西。只有将 CSS 前置，才可在浏览器解析结构时，对页面进行... ]]></description>
			<content:encoded><![CDATA[<p>1、应该将 CSS 放置于结构的上方（一般放置于 head 元素内）。CSS 是解释型语言，Firefox 和 IE 在等待 CSS 传输完成之前不会渲染任何东西。只有将 CSS 前置，才可在浏览器解析结构时，对页面进行渲染。</p>
<p>导致的问题就是，页面会有一段时间“朴素”，突然之间又“华丽”，用户体验很不好。</p>
<p>2、尽量使用 &lt;link rel=”stylesheet” href=”http://www.planabc/yuanxin.css” type=”text/css”&gt; 的样式导入方式，而减少 @import 的使用，更勿使用多层嵌套的 @import 。因为在 IE 里， @import 相当于将 &lt;link&gt; 放在页面尾部。</p>

	<ul class="st-related-posts">
	<li><a href="http://www.11gz.com/blog/2009/02/16/js-css-compression-TBCompressor/" title="推荐一款js css压缩工具TBCompressor (2009年02月16日)">推荐一款js css压缩工具TBCompressor</a></li>
	<li><a href="http://www.11gz.com/blog/2008/05/20/web-page-gray-css/" title="让网页变灰色，一句css就搞定 (2008年05月20日)">让网页变灰色，一句css就搞定</a></li>
	<li><a href="http://www.11gz.com/blog/2008/03/08/without-limiting-the-generality-of-min-width/" title="让一个层有个最小宽度，但不局限于这个宽度 (2008年03月8日)">让一个层有个最小宽度，但不局限于这个宽度</a></li>
	<li><a href="http://www.11gz.com/blog/2010/03/19/cssboxmodel/" title="补习:CSS盒模型 (2010年03月19日)">补习:CSS盒模型</a></li>
	<li><a href="http://www.11gz.com/blog/2010/04/30/css-round-corner/" title="纯css实现圆角带箭头的提示框效果(非css3) (2010年04月30日)">纯css实现圆角带箭头的提示框效果(非css3)</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.11gz.com/blog/2008/05/09/css-load-way-optimization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
