1) it is nice to have the ability to debug javascript that comes with
web2py.
2) it is a waste of bandwith to send full script.

You can partially solve 2) if you work behind  web server capable of sending
compressed/gzip contents to clients willing to accept it,
so that you can put all your jscript libraries human readable and have them
compressed on the fly before transmission.

Anyway IMHO web2py can do much better by using a mimifier similar to this:
http://www.crockford.com/javascript/jsmin.py.txt

The idea would be that in production mode a mimified version is generated of
js inside the static dir once, else static js is served
unchanged and debuggable.

mic

Reply via email to