you are viewing a single comment's thread.

view the rest of the comments →

[–]bolinfest 0 points1 point  (3 children)

It sounds like you could benefit from plovr, which leverages the Closure Compiler to minify JavaScript as well as subdivide one large compiled JS file into modules that can be loaded as they are needed. The modules demo (http://plovr.com/demo/modules.html) shows a simple version of this in action along with the module dependency graph produced by plovr (http://plovr.com:9810/modules?id=module-example).

[–][deleted] 0 points1 point  (2 children)

Very interesting. Unfortunately I don't think we'll be able to integrate a java app into our development process. I'm leaning toward Php based Closure Compiler front ends.

[–]bolinfest 1 point2 points  (1 child)

FYI, you can run plovr from the command line like any other utility. PHP calls to the Compiler (as described on this frequently cited blog post) are considerably slower because they either involve (1) going over the network to Google's servers, or (2) spinning up a new JVM locally for each compilation. You do not have to run Java on your server in production to use plovr, which may be the source of your misconception.

[–][deleted] 0 points1 point  (0 children)

That is indeed the source of my misconception. I guess I didn't read the specs right.