Optimizing Javascript target

Monkey Targets Forums/HTML5/Optimizing Javascript target

frank(Posted 2013) [#1]
Wouldn't it be smart to change the JS target to use something like Closure (https://developers.google.com/closure/)? Because Monkey knows all the monkey types in Trans and beyond, it can include type hints, class definitions and other hints for the closure compiler to optimize javascript. It will also minify, squeeze and thus obfuscate the JS to make it fast loading and optimal. I have seen big optimizations using this in non-game applications (charts and such).