﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>评论：Gzip压缩css和js文件</title>
	<atom:link href="http://www.ksarea.com/articles/20070626_gzip_compress_css_and_js_documents.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ksarea.com/articles/20070626_gzip_compress_css_and_js_documents.html</link>
	<description>King和Sha的小窝</description>
	<lastBuildDate>Thu, 25 Feb 2010 09:48:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：Clarissa Thomas</title>
		<link>http://www.ksarea.com/articles/20070626_gzip_compress_css_and_js_documents.html/comment-page-1#comment-1145</link>
		<dc:creator>Clarissa Thomas</dc:creator>
		<pubDate>Wed, 12 Nov 2008 22:28:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.ksarea.com/?p=101#comment-1145</guid>
		<description>3qmgegrikktjt526

压缩</description>
		<content:encoded><![CDATA[<p>3qmgegrikktjt526</p>
<p>压缩</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：我的blog提速 - G - 理想和现实本来易于冲突,理想时已经含了悲哀,现实起来当然就会绝望</title>
		<link>http://www.ksarea.com/articles/20070626_gzip_compress_css_and_js_documents.html/comment-page-1#comment-495</link>
		<dc:creator>我的blog提速 - G - 理想和现实本来易于冲突,理想时已经含了悲哀,现实起来当然就会绝望</dc:creator>
		<pubDate>Fri, 04 Apr 2008 11:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ksarea.com/?p=101#comment-495</guid>
		<description>[...] 最开始，要学习阅微堂的blog提速系列文章，看完他写的东西和给的链接，学到不少东西 1.合并和压缩css，js并放在合适的地方加载，合并用的是合并css和js文件，加快浏览速度的方法，简单压缩css用的是tweak，简单压缩js用的是JsMinGUI.exe 2.使用压缩传输和强制cookie：这个时候css和js已经确认修改好，不轻易动了，这里会给他们价格expire，用的阅微堂里压缩传输你的文件的方法，不过最好在redir.php里加个判断，不要把压缩传输的静态html类型也设置expire，要不然客户端不随页面更新 3.能不用的插件尽量不用，现在基本上没用什么插件，有也几乎都是后台的 4.css sprite，经过以上设置基本上，打开页面80%以上的时间几乎都用在了请求这个主题的图片上了，但由于css里的图片都用了background-position里的关键字，不能混合使用了放弃了。 5.使用cos-html-cache静态化网站，使用的时候需要注意除了按readme里说的，用2.5的还要按这里的方法，把cos-html-cache.php里的wordpressuser_改为wordpress_，否则登录状态也触发缓存。 6.分析wordpress，并优化代码。算了，没能力。 在阅微堂给的一个链接里推荐一本书，High Performance Web Sites，对提高网站性能有一个很好的认识，在emule里搜索可以吓到这本书。 由于主要是个人自娱的，除了这个有点重的主题，还有对javascript一窍不通，php仅能读简单的代码，没能力自由hack，对网站的捣鼓，暂时到此了。虽然学到了不少，但其间也方法不当做了不少无用功。  This entry was posted on Friday, April 4th, 2008 at 6:58 pm and is filed under 杂. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.    Filed under » 杂 [...]</description>
		<content:encoded><![CDATA[<p>[...] 最开始，要学习阅微堂的blog提速系列文章，看完他写的东西和给的链接，学到不少东西 1.合并和压缩css，js并放在合适的地方加载，合并用的是合并css和js文件，加快浏览速度的方法，简单压缩css用的是tweak，简单压缩js用的是JsMinGUI.exe 2.使用压缩传输和强制cookie：这个时候css和js已经确认修改好，不轻易动了，这里会给他们价格expire，用的阅微堂里压缩传输你的文件的方法，不过最好在redir.php里加个判断，不要把压缩传输的静态html类型也设置expire，要不然客户端不随页面更新 3.能不用的插件尽量不用，现在基本上没用什么插件，有也几乎都是后台的 4.css sprite，经过以上设置基本上，打开页面80%以上的时间几乎都用在了请求这个主题的图片上了，但由于css里的图片都用了background-position里的关键字，不能混合使用了放弃了。 5.使用cos-html-cache静态化网站，使用的时候需要注意除了按readme里说的，用2.5的还要按这里的方法，把cos-html-cache.php里的wordpressuser_改为wordpress_，否则登录状态也触发缓存。 6.分析wordpress，并优化代码。算了，没能力。 在阅微堂给的一个链接里推荐一本书，High Performance Web Sites，对提高网站性能有一个很好的认识，在emule里搜索可以吓到这本书。 由于主要是个人自娱的，除了这个有点重的主题，还有对javascript一窍不通，php仅能读简单的代码，没能力自由hack，对网站的捣鼓，暂时到此了。虽然学到了不少，但其间也方法不当做了不少无用功。  This entry was posted on Friday, April 4th, 2008 at 6:58 pm and is filed under 杂. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.    Filed under » 杂 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：king</title>
		<link>http://www.ksarea.com/articles/20070626_gzip_compress_css_and_js_documents.html/comment-page-1#comment-409</link>
		<dc:creator>king</dc:creator>
		<pubDate>Fri, 22 Feb 2008 03:49:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ksarea.com/?p=101#comment-409</guid>
		<description>all.js 当然是你的web所要用的到js
而all.js.php应该是php代码</description>
		<content:encoded><![CDATA[<p>all.js 当然是你的web所要用的到js<br />
而all.js.php应该是php代码</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Sunxc</title>
		<link>http://www.ksarea.com/articles/20070626_gzip_compress_css_and_js_documents.html/comment-page-1#comment-408</link>
		<dc:creator>Sunxc</dc:creator>
		<pubDate>Thu, 21 Feb 2008 06:29:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.ksarea.com/?p=101#comment-408</guid>
		<description>就是说你最先合并js和css文件是叫什么啊
是all.js.php吗
那么上面
&lt;?php 
    $file=&quot;all.js&quot;; 
    header(&quot;Expires:&quot;.gmdate(&quot;D, d M Y H:i:s&quot;, time()+15360000).&quot;GMT&quot;); 。。。。
这些内容保存的叫什么名字呢 
求助啊</description>
		<content:encoded><![CDATA[<p>就是说你最先合并js和css文件是叫什么啊<br />
是all.js.php吗<br />
那么上面<br />
&lt;?php<br />
    $file=&#8221;all.js&#8221;;<br />
    header(&#8220;Expires:&#8221;.gmdate(&#8220;D, d M Y H:i:s&#8221;, time()+15360000).&#8221;GMT&#8221;); 。。。。<br />
这些内容保存的叫什么名字呢<br />
求助啊</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Sunxc</title>
		<link>http://www.ksarea.com/articles/20070626_gzip_compress_css_and_js_documents.html/comment-page-1#comment-407</link>
		<dc:creator>Sunxc</dc:creator>
		<pubDate>Thu, 21 Feb 2008 06:21:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.ksarea.com/?p=101#comment-407</guid>
		<description>现在已经把那些js都加到all.js.php里 并在head.php里引用了 显示是正常了
但速度还是慢
我想问下你在http://www.ksarea.com/articles/20070626_gzip_compress_css_and_js_documents.html
这里那个all.js是哪里的啊
你的&lt;?php $file=&quot;all.js&quot;; 
    header(&quot;Expires:&quot;.gmdate(&quot;D, d M Y H:i:s&quot;, time()。。。
这些东西应该是all.js.php文件里的内容吧
那all.js 内容是什么啊</description>
		<content:encoded><![CDATA[<p>现在已经把那些js都加到all.js.php里 并在head.php里引用了 显示是正常了<br />
但速度还是慢<br />
我想问下你在http://www.ksarea.com/articles/20070626_gzip_compress_css_and_js_documents.html<br />
这里那个all.js是哪里的啊<br />
你的&lt;?php $file=&#8221;all.js&#8221;;<br />
    header(&#8220;Expires:&#8221;.gmdate(&#8220;D, d M Y H:i:s&#8221;, time()。。。<br />
这些东西应该是all.js.php文件里的内容吧<br />
那all.js 内容是什么啊</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Sunxc</title>
		<link>http://www.ksarea.com/articles/20070626_gzip_compress_css_and_js_documents.html/comment-page-1#comment-406</link>
		<dc:creator>Sunxc</dc:creator>
		<pubDate>Thu, 21 Feb 2008 02:05:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.ksarea.com/?p=101#comment-406</guid>
		<description>您好 我的博客也是由于加载js速度慢了很多 
我现在首先想把所以js合并成为一个all.js.php 
可是不知道为什么好像是路径不对 求助</description>
		<content:encoded><![CDATA[<p>您好 我的博客也是由于加载js速度慢了很多<br />
我现在首先想把所以js合并成为一个all.js.php<br />
可是不知道为什么好像是路径不对 求助</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：King</title>
		<link>http://www.ksarea.com/articles/20070626_gzip_compress_css_and_js_documents.html/comment-page-1#comment-204</link>
		<dc:creator>King</dc:creator>
		<pubDate>Fri, 29 Jun 2007 00:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.ksarea.com/?p=101#comment-204</guid>
		<description>我现在没有缓存所以该目录没有html文件呀
等下我缓存了以后再看</description>
		<content:encoded><![CDATA[<p>我现在没有缓存所以该目录没有html文件呀<br />
等下我缓存了以后再看</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：cosbeta</title>
		<link>http://www.ksarea.com/articles/20070626_gzip_compress_css_and_js_documents.html/comment-page-1#comment-203</link>
		<dc:creator>cosbeta</dc:creator>
		<pubDate>Fri, 29 Jun 2007 00:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.ksarea.com/?p=101#comment-203</guid>
		<description>http://www.ksarea.com/articles/
这个目录下没有html文件存在，所以你的缓存没有成功哦</description>
		<content:encoded><![CDATA[<p><a href="http://www.ksarea.com/articles/" rel="nofollow">http://www.ksarea.com/articles/</a><br />
这个目录下没有html文件存在，所以你的缓存没有成功哦</p>
]]></content:encoded>
	</item>
</channel>
</rss>
