<?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"
	>
<channel>
	<title>Comments on: เพิ่มความเร็วในการโหลด Javascript กับ CSS กันดีกว่า</title>
	<atom:link href="http://www.adkdev.com/2007/06/19/compress-javascript-and-css-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adkdev.com/2007/06/19/compress-javascript-and-css-files/</link>
	<description>adkdev // Just another web development blog - บอก เล่า บ่น ในเรื่องการพัฒนาเว็บไซต์ ด้วย PHP, Ajax, javascript และอื่นๆ ที่อยากบอก เล่า หรือบ่น...</description>
	<pubDate>Sun, 07 Sep 2008 14:53:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: adkdev</title>
		<link>http://www.adkdev.com/2007/06/19/compress-javascript-and-css-files/#comment-29</link>
		<dc:creator>adkdev</dc:creator>
		<pubDate>Mon, 01 Oct 2007 13:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.adkdev.com/2007/06/19/compress-javascript-and-css-files/#comment-29</guid>
		<description>ได้ครับ อาจเอาไปแก้โค้ดหรือดัดแปลงรูปแบบการใช้งานอีกก็ได้ ตามสะดวก

เรื่อง Mod Rewrite ลองอ่านจาก 
Apache Mod Rewrite เพื่อทำ Easy URL- 
http://www.scriptdd.com/webtip/apache-mod-rewrite-easy-url.html

พอดีไปเจอมา อธิบายละเอียดดีครับ</description>
		<content:encoded><![CDATA[<p>ได้ครับ อาจเอาไปแก้โค้ดหรือดัดแปลงรูปแบบการใช้งานอีกก็ได้ ตามสะดวก</p>
<p>เรื่อง Mod Rewrite ลองอ่านจาก<br />
Apache Mod Rewrite เพื่อทำ Easy URL-<br />
<a href="http://www.scriptdd.com/webtip/apache-mod-rewrite-easy-url.html" rel="nofollow">http://www.scriptdd.com/webtip/apache-mod-rewrite-easy-url.html</a></p>
<p>พอดีไปเจอมา อธิบายละเอียดดีครับ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anakin</title>
		<link>http://www.adkdev.com/2007/06/19/compress-javascript-and-css-files/#comment-28</link>
		<dc:creator>anakin</dc:creator>
		<pubDate>Mon, 01 Oct 2007 04:08:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.adkdev.com/2007/06/19/compress-javascript-and-css-files/#comment-28</guid>
		<description>ผมจะเอาไปใช้ในระบบเว็บอินทราเน็ตได้รึปล่าวครับ</description>
		<content:encoded><![CDATA[<p>ผมจะเอาไปใช้ในระบบเว็บอินทราเน็ตได้รึปล่าวครับ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adkdev</title>
		<link>http://www.adkdev.com/2007/06/19/compress-javascript-and-css-files/#comment-9</link>
		<dc:creator>adkdev</dc:creator>
		<pubDate>Thu, 21 Jun 2007 03:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.adkdev.com/2007/06/19/compress-javascript-and-css-files/#comment-9</guid>
		<description>สงสัยผมจะรีบเกินไป มีบางคนไม่เข้าใจ ว่าใช้ยังไง

การเรียกใช้ก็เป็นแบบปกติหนะครับ เปลี่ยนแค่ที่อยู่ของไฟล์ 
Javascript : &lt;code&gt;&lt; script type="text/javascript" src="http://www.adkdev.com/javascript/prototype.js,builder.js,effects.js,dragdrop.js,slider.js"&gt;&lt;/script&gt;&lt;/code&gt;

CSS: &lt;code&gt;&lt; link rel="stylesheet" type="text/css" href="http://www.adkdev.com/css/style.css,page.css" media="screen" /&gt;&lt;/code&gt;

และก็ที่ไฟล์ combine.php นี่เราต้องดูบรรทัดที่ 28-31 ด้วยนะครับ
28:    $cache       = true;
29:   $cachedir = dirname(__FILE__) . '/cache';
30:    $cssdir   = dirname(__FILE__) . '/css';
31:    $jsdir    = dirname(__FILE__) . '/javascript'; 

หากบรรทัดที่ 28 เป็น true ต้องสร้างโฟล์เดอร์ cache ด้วยนะครับ
บรรทัดที่ 29 ก็เป็นชื่อโฟล์เดอร์
บรรทัดที่ 30 เป็นโฟล์เดอร์ที่เก็บไฟล์ css
ส่วนบรรทัดที่ 31 ก็เก็บไฟล์ javascript ตามระเบียบ

เก็บไฟล์ combine.php ไว้ที่ web root นะครับ</description>
		<content:encoded><![CDATA[<p>สงสัยผมจะรีบเกินไป มีบางคนไม่เข้าใจ ว่าใช้ยังไง</p>
<p>การเรียกใช้ก็เป็นแบบปกติหนะครับ เปลี่ยนแค่ที่อยู่ของไฟล์<br />
Javascript : <code>< script type="text/javascript" src="http://www.adkdev.com/javascript/prototype.js,builder.js,effects.js,dragdrop.js,slider.js"></code></p>
<p>CSS: <code>< link rel="stylesheet" type="text/css" href="http://www.adkdev.com/css/style.css,page.css" media="screen" /></code></p>
<p>และก็ที่ไฟล์ combine.php นี่เราต้องดูบรรทัดที่ 28-31 ด้วยนะครับ<br />
28:    $cache       = true;<br />
29:   $cachedir = dirname(__FILE__) . &#8216;/cache&#8217;;<br />
30:    $cssdir   = dirname(__FILE__) . &#8216;/css&#8217;;<br />
31:    $jsdir    = dirname(__FILE__) . &#8216;/javascript&#8217;; </p>
<p>หากบรรทัดที่ 28 เป็น true ต้องสร้างโฟล์เดอร์ cache ด้วยนะครับ<br />
บรรทัดที่ 29 ก็เป็นชื่อโฟล์เดอร์<br />
บรรทัดที่ 30 เป็นโฟล์เดอร์ที่เก็บไฟล์ css<br />
ส่วนบรรทัดที่ 31 ก็เก็บไฟล์ javascript ตามระเบียบ</p>
<p>เก็บไฟล์ combine.php ไว้ที่ web root นะครับ</p>
]]></content:encoded>
	</item>
</channel>
</rss>
