<?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>fforw.de &#187; closure compiler</title>
	<atom:link href="http://fforw.de/tag/closure-compiler/feed/" rel="self" type="application/rss+xml" />
	<link>http://fforw.de</link>
	<description>skip the boring parts</description>
	<lastBuildDate>Sat, 12 Nov 2011 11:54:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Google Closure Tools</title>
		<link>http://fforw.de/post/google-closure-tools/</link>
		<comments>http://fforw.de/post/google-closure-tools/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 11:58:27 +0000</pubDate>
		<dc:creator>fforw</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[closure compiler]]></category>
		<category><![CDATA[closure library]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[stats]]></category>
		<category><![CDATA[yuicompressor]]></category>

		<guid isPermaLink="false">http://fforw.de/?p=122</guid>
		<description><![CDATA[Some days ago, Google released the Google Closure Tools, that look very promising. I&#8217;ve yet been unable to feel particular enthusiasm for the Google Closure Library which seems like just another JavaScript (-only)? libary, something that may only be of any importance because it&#8217;s coming from Google, but who does not seem to provide anything [...]]]></description>
			<content:encoded><![CDATA[<div class='en' style='' lang='en' dir=''>
<p>Some days ago, Google released the <a href="http://code.google.com/closure/">Google Closure Tools</a>, that look very promising. I&#8217;ve yet been unable to feel particular enthusiasm for the <a href="http://code.google.com/closure/library/">Google Closure Library</a> which seems like just another JavaScript (-only)? libary, something that may only be of any importance because it&#8217;s coming from Google, but who does not seem to provide anything really spectacular or new.</p>
<p>The <a href="http://code.google.com/closure/compiler/">Closure Compiler</a>, however looks really good. It&#8217;s not only a simple script compressor, but also offering dead code removal and lint-like feature. I&#8217;ve been doing some testing with our main JavaScript bundle(all JavaScript code used in our test application concatenated together):</p>
<table border="0">
<tbody>
<tr>
<th>Description</th>
<th>Bytes abs</th>
<th>Bytes %</th>
</tr>
<tr>
<td>js bundle</td>
<td>284935</td>
<td>100,0%</td>
</tr>
<tr>
<td>yuicompressor compressed</td>
<td>126656</td>
<td>44.5%</td>
</tr>
<tr>
<td>closure compiler compressed</td>
<td>97362</td>
<td>34.2%</td>
</tr>
<tr>
<td>js bundle gzip</td>
<td>75163</td>
<td>26.4%</td>
</tr>
<tr>
<td>yui + gzip</td>
<td>42189</td>
<td>14.8%</td>
</tr>
<tr>
<td>closure + gzip</td>
<td>35432</td>
<td>12.4%</td>
</tr>
</tbody>
</table>
<p>As you can see, Closure compiler is a bit better  than yuicompressor. The only downside to it is that it doesn&#8217;t support IE conditional comments. This means that above numbers a little too good for Google Closure as we are using some IE conditional comments for compatibility purposes.</p>
<p>The depedency management looks promising, too. So far I am using a self-brew solution for my current project at work, but I would really like to see a standard for packaging, compression and deployment for Javascript.</p>
</div>
<p>
<p><small>This Article is also available in <b>Deutsch</b>.</small></p>
]]></content:encoded>
			<wfw:commentRss>http://fforw.de/post/google-closure-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

