Subj : [Rhino] what is better for includes? To : netscape.public.mozilla.jseng From : Mike C. Date : Sat May 15 2004 10:39 pm For using JS in a servlet environment, I translate the page into a JavaScript only file, then I compile it with Rhino into a bytecode .class file. For include files, I can either - compile each include into a separate class file, then execute the script in the same scope as the main page - make a big .js file for each main page, with all include files concatenated, then compile the main page only into bytecode. Question is, do I have any chance to get better compile-time optimizations if I concatenate all include files to the main script? Otherwise I would use the first solution, since the translation is simpler for it. Thanks, Mike .