1. #1
    Ext JS Premium Member
    Join Date
    Jul 2009
    Posts
    239
    Vote Rating
    2
    stephen.friedrich will become famous soon enough

      0  

    Default 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
    3.3.2: 701KB

    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.

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    3
    tryanDLS is on a distinguished road

      0  

    Default


    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.

  3. #3
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,664
    Vote Rating
    7
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    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

  4. #4
    Ext JS Premium Member
    Join Date
    Jul 2009
    Posts
    239
    Vote Rating
    2
    stephen.friedrich will become famous soon enough

      0  

    Default


    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 :-(

  5. #5
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,669
    Vote Rating
    110
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    hi stephen.friedrich,

    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.


    best regards
    tobiu
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

  6. #6
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Sencha Command is the answer to this

  7. #7
    Sencha Premium Member
    Join Date
    Feb 2009
    Posts
    316
    Vote Rating
    3
    azuroff will become famous soon enough

      0  

    Default


    Quote Originally Posted by jgarcia@tdg-i.com View Post
    Sencha Command is the answer to this
    Stop teasing us like that... :p

  8. #8
    Ext JS Premium Member
    Join Date
    Apr 2007
    Posts
    291
    Vote Rating
    0
    jheid is on a distinguished road

      0  

    Default


    See http://www.sencha.com/forum/showthre...r-don-t-get-it

    Dynamic loading isn't working with ExtJS 4.0 as intended at the moment.

  9. #9
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    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.

  10. #10
    Sencha Premium Member
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    298
    Vote Rating
    62
    Ekambos is a jewel in the rough Ekambos is a jewel in the rough Ekambos is a jewel in the rough Ekambos is a jewel in the rough

      0  

    Default


    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 .

Similar Threads

  1. LinkButton extjs4?
    By frankbolviken in forum Ext: Discussion
    Replies: 8
    Last Post: 7 Oct 2013, 6:36 AM
  2. ExtJs3 and ExtJs4 in One App
    By Darren Martz in forum Ext: Discussion
    Replies: 3
    Last Post: 7 Apr 2011, 8:48 AM
  3. Calendar in Extjs4
    By stratboogie in forum Ext: Discussion
    Replies: 2
    Last Post: 6 Apr 2011, 3:25 AM
  4. Ext.Direct with ExtJS4
    By c2c-guinness in forum Ext: Discussion
    Replies: 1
    Last Post: 22 Mar 2011, 6:39 AM
  5. Ext.Direct Changes for ExtJS4?
    By Dumas in forum Ext.Direct
    Replies: 0
    Last Post: 16 Feb 2011, 7:31 AM

Thread Participants: 8