6 Apr 2011 4:21 AM #1
ExtJS4: Size of ext-all.js
ExtJS4: Size of ext-all.js
I noticed that ext-all.js is a lot larger in ExtJS4:
4.0 Beta1: 951KB
Is this (close to) the final size or is there still room for improvement in the final 4.0 release?
Our ExtJS apps are noticeably faster than "traditional" apps that generate HTML on the server, _except_ for the initial loading time. On slow network connections this has already been an issue in the past. It would be a shame if the problem becomes so much worse in a new ExtJS version.
6 Apr 2011 5:37 AM #2
While the basic 'everything under the sun' build pkg may be bigger, I would think that given v4's ability to dynamically load pieces as needed, and the ability to build a smaller pkg via the jsb files, you probably won't be running the base 'all' file if you don't need to.
6 Apr 2011 5:48 AM #3
right, ext-all is temporary untilall works as it should. Later you define your requires, and the loader will load what ever is needed.vg Steffen
Release Manager of TYPO3 4.5
6 Apr 2011 1:47 PM #4
Thanks for the answers.
I doubt that dynamic loading is the solution. Making eleventy-nine roundtrips to download snippets of js might be fine during development, but will just cause other performance problems in production.
So yes, I'll build a custom version, but I already did that with ExtJS 3, so the fact remains that ExtJS 4 is hundreds of KB larger :-(
6 Apr 2011 10:37 PM #5
nice to see you are already using ext js 4 too
even if the ext 4 all js is around 300 kb bigger, you save the charts.swf, which was 80 kbs. at least if you used the yui-charts.
i personally really prefer faster layout and grid - rendering compared to the initial loading time.
the loader has also a huge potential, since you can not only load the ext-packages you need but also the custom modules of your app. example: loading the admin-panel of an app and all all needed modules only when a user wants to use it.
S-CIRCLES Social Network Engine
7 Apr 2011 12:42 PM #6
7 Apr 2011 2:07 PM #7
9 Apr 2011 5:38 AM #8
11 Apr 2011 6:53 AM #9
- Join Date
- Mar 2007
- Notts/Redwood City
- Vote Rating
There are plans to help you generate a custom build from your source tree which only builds a JS file containing the classes you actually use.
When this is working, the total JS size might actually be smaller.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
11 Apr 2011 7:36 AM #10
That s why i went to GWT(GXT) and never looked back. Glad i have a compiler there, dont need to worry about those type of things. Sad Sencha ships all the engineering power to EXT-JS and a lillte to GXT .
By frankbolviken in forum Ext: DiscussionReplies: 11Last Post: Today, 2:22 AM
By Darren Martz in forum Ext: DiscussionReplies: 3Last Post: 7 Apr 2011, 8:48 AM
By stratboogie in forum Ext: DiscussionReplies: 2Last Post: 6 Apr 2011, 3:25 AM
By c2c-guinness in forum Ext: DiscussionReplies: 1Last Post: 22 Mar 2011, 6:39 AM
By Dumas in forum Ext.DirectReplies: 0Last Post: 16 Feb 2011, 7:31 AM