Comments on: Helping the YUI Compressor http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/ News and Artilces about Designing and Developing with Yahoo! Libraries. Sat, 05 Jul 2008 16:46:18 +0000 http://wordpress.org/?v=2.3.3 By: Neil Hathaway http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-402756 Neil Hathaway Sun, 22 Jun 2008 20:56:19 +0000 http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-402756 Fantastic work! Looked around for a lib I could could use to automate compressed JS/CSS in my netbeans builds and this lib has done the trick, see my blog for info on how I used it. Fantastic work!

Looked around for a lib I could could use to automate compressed JS/CSS in my netbeans builds and this lib has done the trick, see my blog for info on how I used it.

]]>
By: Dave http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-356348 Dave Tue, 22 Apr 2008 17:15:07 +0000 http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-356348 It seems guys from Stunnix have integrated YUI Compressor in their <a href="http://www.stunnix.com/prod/jo/" rel="nofollow">JavaScript Obfuscator</a> and with their product you can minify JavaScript inside HTML files too (with use of YUI Compressor). They even claim compressing with YUI Compressor works with server-side javascript too (ASP scripts can be coded in VBScript and in JavaScript)/ It seems guys from Stunnix have integrated YUI Compressor in their JavaScript Obfuscator and with their product you can minify JavaScript inside HTML files too (with use of YUI Compressor).

They even claim compressing with YUI Compressor works with server-side javascript too (ASP scripts can be coded in VBScript and in JavaScript)/

]]>
By: nefthy http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-324410 nefthy Tue, 18 Mar 2008 23:43:53 +0000 http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-324410 Hi, unless you also use gzip (with content negotiation or some rewrite voodoo) I don't see the point of the Compressor. Take a look at the editor from yui 2.5.0 340K editor-beta-debug.js 64K editor-beta-debug.js.gz 332K editor-beta.js 60K editor-beta.js.gz 124K editor-beta-min.js 32K editor-beta-min.js.gz If you realy want to get everithing out of it -min.js.gz is the way to go, otherwize gzip is better. Hi,

unless you also use gzip (with content negotiation or some rewrite voodoo) I don’t see the point of the Compressor. Take a look at the editor from yui 2.5.0

340K editor-beta-debug.js
64K editor-beta-debug.js.gz
332K editor-beta.js
60K editor-beta.js.gz
124K editor-beta-min.js
32K editor-beta-min.js.gz

If you realy want to get everithing out of it -min.js.gz is the way to go, otherwize gzip is better.

]]>
By: Andrew http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-323730 Andrew Mon, 17 Mar 2008 11:34:32 +0000 http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-323730 Hi, I wish to change YUI Compressor's sources a little to try one idea. I failed to find anything anywhere (including google) on how to rebuild it. Are there any Ant files, Makefiles, bash scripts or anything to rebuild it? Thanks in advance for your answer! Hi,

I wish to change YUI Compressor’s sources a little to try one idea.

I failed to find anything anywhere (including google) on how to rebuild it. Are there any Ant files, Makefiles, bash scripts or anything to rebuild it?

Thanks in advance for your answer!

]]>
By: Nicholas C. Zakas http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-321811 Nicholas C. Zakas Wed, 12 Mar 2008 17:11:11 +0000 http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-321811 The setTimeout() and setInterval() functions work slightly differently than eval() when taking a string. For eval(), the string is executed within the scope of the function in which it is called. For the others, the string is executed in the global scope and so doesn't have access to local variables or functions. Therefore, the restrictions for eval() don't apply to setTimeout() or setInterval(). The setTimeout() and setInterval() functions work slightly differently than eval() when taking a string. For eval(), the string is executed within the scope of the function in which it is called. For the others, the string is executed in the global scope and so doesn’t have access to local variables or functions. Therefore, the restrictions for eval() don’t apply to setTimeout() or setInterval().

]]>
By: John - the user of Javascript Obfuscator http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-321739 John - the user of Javascript Obfuscator Wed, 12 Mar 2008 09:58:54 +0000 http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-321739 Should setTimeout() be also isolated like eval() should be? setTimeout()/setInterval() also takes the the expression to be evaluated, like eval().. Any plans to implement compacting of code inside html? Should setTimeout() be also isolated like eval() should be? setTimeout()/setInterval() also takes the the expression to be evaluated, like eval()..

Any plans to implement compacting of code inside html?

]]>
By: rascunho » Blog Archive » links for 2008-02-20 http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-309660 rascunho » Blog Archive » links for 2008-02-20 Wed, 20 Feb 2008 20:30:09 +0000 http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-309660 [...] Helping the YUI Compressor » Yahoo! User Interface Blog Julien’s YUI Compressor is an incredibly useful tool for decreasing the size of your JavaScript files. Since it uses Rhino to parse your JavaScript code, it can perform all kinds of smart operations to save bytes in a completely safe way: (tags: yuiblog.com 2008 mes1 dia20 at_home javascript compressor Yahoo! **** blog_post) [...] […] Helping the YUI Compressor » Yahoo! User Interface Blog Julien’s YUI Compressor is an incredibly useful tool for decreasing the size of your JavaScript files. Since it uses Rhino to parse your JavaScript code, it can perform all kinds of smart operations to save bytes in a completely safe way: (tags: yuiblog.com 2008 mes1 dia20 at_home javascript compressor Yahoo! **** blog_post) […]

]]>
By: Mike Reid http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-309088 Mike Reid Wed, 20 Feb 2008 00:56:50 +0000 http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-309088 Great summary, Nicholas. You recommend some best-practices that ultimately become that much better when leveraging YUI Compressor! I've always been a big fan of "Storing Local References to Objects/Values" as it saves a lot of redundant typing and bandwidth. YUI Compressor compliments this technique nicely :) Great summary, Nicholas. You recommend some best-practices that ultimately become that much better when leveraging YUI Compressor! I’ve always been a big fan of “Storing Local References to Objects/Values” as it saves a lot of redundant typing and bandwidth. YUI Compressor compliments this technique nicely :)

]]>
By: Robert http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-308222 Robert Mon, 18 Feb 2008 22:49:14 +0000 http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-308222 Very helpful thanks! Very helpful thanks!

]]>
By: confusion technology » Blog Archive » daily-digest news http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-305925 confusion technology » Blog Archive » daily-digest news Fri, 15 Feb 2008 14:35:43 +0000 http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/#comment-305925 [...] to read about things that really interest me, and I have yet to see a newspaper do a piece on, say, Javascript Compression. So I created [...] […] to read about things that really interest me, and I have yet to see a newspaper do a piece on, say, Javascript Compression. So I created […]

]]>