<?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: Close Look into “Include” JavaScript Compression Lib</title>
	<atom:link href="http://justtalkaboutweb.com/2008/03/10/close-look-into-include-javascript-compression-lib/feed/" rel="self" type="application/rss+xml" />
	<link>http://justtalkaboutweb.com/2008/03/10/close-look-into-include-javascript-compression-lib/</link>
	<description>Techniques Behind Modern Web</description>
	<pubDate>Thu, 04 Dec 2008 20:07:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: roScripts &#45; Webmaster resources and websites</title>
		<link>http://justtalkaboutweb.com/2008/03/10/close-look-into-include-javascript-compression-lib/#comment-287</link>
		<dc:creator>roScripts &#45; Webmaster resources and websites</dc:creator>
		<pubDate>Tue, 11 Mar 2008 06:14:53 +0000</pubDate>
		<guid isPermaLink="false">http://justtalkaboutweb.com/2008/03/10/close-look-into-%e2%80%9cinclude%e2%80%9d-javascript-compression-lib/#comment-287</guid>
		<description>&lt;strong&gt;Close Look into &#x201C;Include&#x201D; JavaScript Compression Lib &#45; A Client&#45;Side Solution &#124; Just T...&lt;/strong&gt;

Close Look into &#x201C;Include&#x201D; JavaScript Compression Lib &#45; A Client&#45;Side Solution &#124; Just Talk About Web...</description>
		<content:encoded><![CDATA[<p><strong>Close Look into &#x201C;Include&#x201D; JavaScript Compression Lib &#45; A Client&#45;Side Solution | Just T&#8230;</strong></p>
<p>Close Look into &#x201C;Include&#x201D; JavaScript Compression Lib &#45; A Client&#45;Side Solution | Just Talk About Web&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Moschel</title>
		<link>http://justtalkaboutweb.com/2008/03/10/close-look-into-include-javascript-compression-lib/#comment-284</link>
		<dc:creator>Brian Moschel</dc:creator>
		<pubDate>Mon, 10 Mar 2008 11:09:18 +0000</pubDate>
		<guid isPermaLink="false">http://justtalkaboutweb.com/2008/03/10/close-look-into-%e2%80%9cinclude%e2%80%9d-javascript-compression-lib/#comment-284</guid>
		<description>Thanks for the thorough and honest writeup Jimmy.

It is true that Packer requires correct semi-colon usage in all your scripts for the compressed code to work correctly.  I've found the best way to fix problems is to narrow down missing semicolon problems is like this: 

1) compress the problem script in packer directly (http://dean.edwards.name/packer/)
2) put the compressed script in eclipse (my IDE of choice)
3) if eclipse shows a syntax error, cut the code in half and try both halfs until the problem is found

Alternatively, YUI Compressor doesn't have the same strict requirements for syntax.  We've written a Ruby server-side script that works by accepting the ordered list of files generated by Include and using YUI Compressor on the files.  More info on that (and the download) is on the main Include page (http://javascriptmvc.com/learningcenter/include/index.html), or in this readme: http://javascriptmvc.com/include_ruby/readme.txt

If you need to change the default location of your production file, you can do so like this: 
include.setup({env: 'production', production: 'scripts/production.js'});
Doing this will also remove those extra loads of include you're seeing in Firebug because you'll be using production mode.  Check out the API docs for more info (http://javascriptmvc.com/learningcenter/include/api.html).

@Andrea, I will look into the MyMin compressor.  If it is written in JavaScript and relaxes the syntax requirements of Packer, you may see it in a future release.

- Brian</description>
		<content:encoded><![CDATA[<p>Thanks for the thorough and honest writeup Jimmy.</p>
<p>It is true that Packer requires correct semi-colon usage in all your scripts for the compressed code to work correctly.  I&#8217;ve found the best way to fix problems is to narrow down missing semicolon problems is like this: </p>
<p>1) compress the problem script in packer directly (http://dean.edwards.name/packer/)<br />
2) put the compressed script in eclipse (my IDE of choice)<br />
3) if eclipse shows a syntax error, cut the code in half and try both halfs until the problem is found</p>
<p>Alternatively, YUI Compressor doesn&#8217;t have the same strict requirements for syntax.  We&#8217;ve written a Ruby server-side script that works by accepting the ordered list of files generated by Include and using YUI Compressor on the files.  More info on that (and the download) is on the main Include page (http://javascriptmvc.com/learningcenter/include/index.html), or in this readme: <a href="http://javascriptmvc.com/include_ruby/readme.txt" rel="nofollow" onclick="javascript:pageTracker._trackPageview('/outbound/comment/http://javascriptmvc.com/include_ruby/readme.txt');">http://javascriptmvc.com/include_ruby/readme.txt</a></p>
<p>If you need to change the default location of your production file, you can do so like this:<br />
include.setup({env: &#8216;production&#8217;, production: &#8217;scripts/production.js&#8217;});<br />
Doing this will also remove those extra loads of include you&#8217;re seeing in Firebug because you&#8217;ll be using production mode.  Check out the API docs for more info (http://javascriptmvc.com/learningcenter/include/api.html).</p>
<p>@Andrea, I will look into the MyMin compressor.  If it is written in JavaScript and relaxes the syntax requirements of Packer, you may see it in a future release.</p>
<p>- Brian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea Giammarchi</title>
		<link>http://justtalkaboutweb.com/2008/03/10/close-look-into-include-javascript-compression-lib/#comment-283</link>
		<dc:creator>Andrea Giammarchi</dc:creator>
		<pubDate>Mon, 10 Mar 2008 09:14:20 +0000</pubDate>
		<guid isPermaLink="false">http://justtalkaboutweb.com/2008/03/10/close-look-into-%e2%80%9cinclude%e2%80%9d-javascript-compression-lib/#comment-283</guid>
		<description>&lt;blockquote&gt;Problem is Dean Edwards’ Packer used for compression did not produce “safe” scripts for my project...&lt;blockquote&gt;
so switch to MyMin from &lt;a href="http://packed.it/" rel="nofollow"&gt;packed.it&lt;/a&gt; ;)</description>
		<content:encoded><![CDATA[<blockquote><p>Problem is Dean Edwards’ Packer used for compression did not produce “safe” scripts for my project&#8230;<br />
<blockquote>
so switch to MyMin from <a href="http://packed.it/" rel="nofollow" onclick="javascript:pageTracker._trackPageview('/outbound/comment/http://packed.it/');">packed.it</a> <img src='http://justtalkaboutweb.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p></blockquote>
</blockquote>
]]></content:encoded>
	</item>
</channel>
</rss>
