[Kss-devel] ree-stripout-comments branch merged

Godefroid Chapelle gotcha at bubblenet.be
Tue Jun 12 11:35:26 CEST 2007


Balazs Ree wrote:
> I finished merging the "stripout comments" branch to the trunk. The goal 
> of the changes is make the javascript slightly smaller and slightly 
> faster.
> 
> Before the merge, I got rid of all the multiline comments constructions 
> that caused unreadable code in the first version. It is all single 
> line ;;; comments now.
> 
> 
> What is new?
> 
> We have ;;; comments in the javascript source, and those lines are 
> removed in the "production" version of the code by the packer. However 
> they are all present in the "development" version.
> 
> Lines marked by ;;; include all error and information messages, logging, 
> and lots of assertions. Iow, you will have boring error messages in 
> production mode if something breaks, but in return you get better 
> performance if everything works.
> 
> The production and development version will be governed by the RR debug 
> mode in Plone. Alternately, the mode is also switchable from the client 
> by a cookie. Ie, you can also debug on production servers, without the 
> need to change anything at the server side.
> 

All this work goes in the direction of smaller KSS. This should reduce 
some of the bad comments about KSS size.

I really like the care you have put in keeping KSS developer-friendly 
with the switch via cookie/web interface !

Thanks a lot.

-- 
Godefroid Chapelle (aka __gotcha)- BubbleNet  http://bubblenet.be



More information about the Kss-devel mailing list