<?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>Huy Dinh &#187; optimisation</title>
	<atom:link href="http://huydinh.co.uk/blog/tag/optimisation/feed/" rel="self" type="application/rss+xml" />
	<link>http://huydinh.co.uk/blog</link>
	<description>Just 8 bit crazy about coding</description>
	<lastBuildDate>Sat, 23 Jan 2010 11:47:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Minify Magento&#8217;s JS and CSS</title>
		<link>http://huydinh.co.uk/blog/2008/08/31/minify-magentos-js-and-css/</link>
		<comments>http://huydinh.co.uk/blog/2008/08/31/minify-magentos-js-and-css/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 10:38:13 +0000</pubDate>
		<dc:creator>Huy Dinh</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[optimisation]]></category>

		<guid isPermaLink="false">http://huydinh.co.uk/blog/?p=36</guid>
		<description><![CDATA[I don&#8217;t want to sound like a broken record but Magento is slow. So why then aren&#8217;t the JS and CSS minified by default?
My love for optimisation knows no boundaries, as such, I&#8217;ve taken it on myself to provide an automated solution &#8211; here it is:
minify.zip
It&#8217;s a simple script that scans through each theme&#8217;s layout/page.xml [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t want to sound like a broken record but <a title="Magento homepage" href="http://connect.magentocommerce.com/" target="_blank">Magento</a> is slow. So why then aren&#8217;t the JS and CSS minified by default?</p>
<p>My love for optimisation knows no boundaries, as such, I&#8217;ve taken it on myself to provide an automated solution &#8211; here it is:</p>
<p><a title="Download minify.zip" href="http://www.huydinh.co.uk/files/minify.php">minify.zip</a></p>
<p>It&#8217;s a simple script that scans through each theme&#8217;s layout/page.xml and minifies each JS and CSS it finds.</p>
<p>To use the script, you need to have the Java runtime environment installed, php must have shell execution abilities and your webserver must have write permissions in  each theme&#8217;s page.xml (<em>/app/design/frontend/default/default/layout/page.xml</em>), css folder (<em>/skin/frontend/default/default/css</em>) and the main js folder (<em>/js</em>). You also need to have <a title="YUI Compressor" href="http://developer.yahoo.com/yui/compressor/" target="_blank">YUI Compressor</a>&#8217;s build <strong>jar </strong>file on your server (<a title="Download YUI Compressor" href="http://www.julienlecomte.net/yuicompressor/" target="_blank">download it here</a>).</p>
<p>One last thing is to edit the script with your Magento&#8217;s root folder and location of YUI Compressor&#8217;s jar file.</p>
<p>It is recommended that you put the script into a password protected folder!</p>
<p>Oh, one last thing: I haven&#8217;t tested the script in a Windows environment so it may not work.</p>
]]></content:encoded>
			<wfw:commentRss>http://huydinh.co.uk/blog/2008/08/31/minify-magentos-js-and-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
