On 01/25/2012 01:18 PM, A Matías Quezada wrote: > Hi all, > > I'm trying Qooxdoo but I need some files to be included on the > generated js: "security.js" and "supply.js". They do not depend on > qooxdoo and I need it to be loaded before Qooxdoo. I cannot modify the > HTML page. > > I've tried with "add-script" configuration, but it loads them after > qooxdoo is loaded,
This is not quite true. The 'add-script' scripts are loaded ahead of any other script *except for the loader script itself*, for obvious reasons. Now if you have a default build configuration, the loader will not only bootstrap the app, but will also contain class code (to save an additional net request). It may in fact contain the class code of the entire application, which will be evaluated before any of the 'add-script scripts is loaded. If you mean that with "qooxdoo is loaded" you are right. The solution is to split the class code from the loader. This will leave the loader script with the boostrap code, and all class code will be loaded in a separate step. As now the class code is in a separate script, your 'add-script' scripts will be loaded before that. This might achieve what you want. In order to get the class code in a separate script, add to your "job" section in your config.json: build-script/packages/separate-loader : true [1] T. [1] http://manual.qooxdoo.org/1.6.x/pages/tool/generator_config_ref.html#packages ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
