New Javascript Goodies
-
On the Maintainable site today are two new articles on Javascript. Minifying Your Rails Javascript shows how to cut down your Javascript footprint with JSMin and Rake. Testing Javascript in Rails introduces the Test.Unit component of Scriptaculous.
We also released Firebug RJS Errors, a tiny plugin that patches RJS to log errors to the Firebug console instead of its default
alert()box.

2 comments
comment by Mislav 24 Feb 07
Awesome! Good work, guys!
I have a single complaint. In the minifying article you mentioned that Prototype “has a bug” that prevents minifying. Well, our code is perfectly *valid* JavaScript and we don’t even officially support minified versions (we favor gzipping), so calling it a “bug” is wrong :)
Minifiers change the original code, and if that introduces bugs then it’s not the fault of the original code or its authors.
We’ll get that semicolon in, though.
comment by Mike Naberezny 24 Feb 07
Thanks, Mislav.
Post a comment