Hello Gene, Am 02.04.2009 um 16:23 schrieb Gene Amtower:
> In my current work with Qooxdoo, I'm generating a build version of > my project that results in a js file of ~640 KB. Are there changes > I can make in the build job that can reduce this to a smaller size? You can exclude the classes you dont need with a exclude key in the config file. If you dont use data binding for example, you can exclude all data binding classes. They will be automatically included because the data binding mixin is included by every qooxdoo object. Just take a look at the documentation to see how the excluding works: http://qooxdoo.org/documentation/0.8/generator_config_ref#exclude > I originally ran the "generate.py source-all" job - does this impact > the size of the "build" result at all? The source-all job does only impact the source generation and therefore it has nothing to do with the build version of your app. > I've seen posts here about implementing gzip compression for the js > file which I can look at as well, and I know there are ways to break > the app into smaller separate js files to control initial load > times, but I wondered if I'm missing something in the build job that > can leave out unneeded pieces of the qooxdoo framework. I suspect > this is already happening automatically and this IS the minimized > package that I need, but I want to make sure I've not overlooked > something simple in my build calls to generate.py or edits to the > config.json file for this application. You can make the generator to gzip the file on compile time. Just take a look at this documentation to get more information how that works: http://qooxdoo.org/documentation/0.8/generator_config_ref#compile-dist The new experimental part loading does not have any documentation yet. Its on the todo list. ;) But you can have a look at the feed reader application, which uses the new part loading. Line 484 of the feed readers Application file shows one example usage of the loading. > > You might just confirm for me that the minimally-required framework > content is already included in the ~640 KB js file, as I don't know > how much each part of the framework will impact the final js file > size. If I know I'm building the js file correctly, I'll move on to > the other post topics mentioned above to try to reduce my app load > time. About 640 KB for you application could be correct, depending on your application size. So perhaps its a good idea to start with the first topic and remove the data classes from the build, if you dont use them. > > Thanks, > > Gene > ------------------------------------------------------------------------------ > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel Regards, Martin ------------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
