-
24 Jul 2012 9:26 PM #31
Attached, my sample Configuration for layout:
Sample Index-build.html:Code:Ext.application({ requires: ['Ext.container.Viewport', 'Ext.layout.*' ], name: 'ExtJs', autoCreateViewPort: true, launch: function () { Ext.create('Ext.container.Viewport', { layout: 'border', items: [ // create instance immediately Ext.create('Ext.Component', { region: 'north', height: 44, // give north and south regions a height contentEl: 'north', }), { region: 'west', contentEl: 'west', layout: 'fit', manageOverflow: 1, width: 200, split: true, autoscroll: true }, { region: 'center', contentEl: 'center', layout: 'fit' }] }); } });
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <link rel="stylesheet" type="text/css" href="ext-all-gray.css" /> <script type="text/javascript" src="ext-dev.js"></script> <script type="text/javascript" src="LayOut.js"></script> </head> <body> <div id="north" class="x-hide-display" style="background-color: red"> North </div> <div class="x-hide-display" id="west" style="overflow-y: scroll; height: 100%; margin-top: 10px"> West </div> <div id="center" class="x-hide-display"> Center </div> </body> </html>
-
29 Jul 2012 9:12 AM #32
To be honest, that doesn't seem that far off. Ext.form.* has a lot of general dependencies, including Ext core and most of the Model modules. You can see a full list of what has been included inside your generated .jsb3 file.
I agree that it seems high. I too am looking for ways to strip more files out. It is becoming a game of turning off unneeded features, deleting dependencies from my jsb3, and testing to see if I have broken any functionality. Unfortunately the trick is to figure out how to remove dependencies outright and to keep them from coming back in the automatic build.
Unfortunately it is becoming obvious that ExtJS4 does not do a very good job of creating a "lean" build, especially if you use heavy customization. My app, even totally minified, totals about 1.5MB with all JS and CSS. I would feel much more comfortable if that were around the ~300KB mark.
Thank you for reporting this bug. We will make it our priority to review this report.



Reply With Quote