On Tuesday, January 31, 2012 3:40:00 PM UTC-5, Massimo Di Pierro wrote: > > from gluon.contrib.htmlminify import minify > retrun minify(response.render(...)) > > Yet I am not sure this will provide any improvement over gzip http > responses. In fact the gzipping would be performed by the web server > and would result in smaller data and faster processing. It is > different for JS because there the minimization can take advantage > variable name rewriting. > > What do other people think? >
I agree -- I'm not sure minifying HTML will be worthwhile after gzipping. But if we do it, your proposed approach seems like the way to go (though it might be best if we can find an already tested solution rather than try to build our own and possibly get it wrong). Anthony