1. #1
    grgur's Avatar
    Join Date
    Aug 2007
    Location
    Split, Croatia
    Posts
    155
    Vote Rating
    24
    grgur has a spectacular aura about grgur has a spectacular aura about

      0  

    Default Ext.Loader minimum package

    Ext.Loader minimum package


    I was wondering which ext package to use as a minimum, while native components would be dynamically loaded as needed. I used the forum example. Here are my findings:

    ext-foundation.js
    Doesn't work for core components (e.g. Element.js). Location for Element.js is src/core/src/dom/Element.js, but Loader expects src/core/Element.js

    ext-core.js
    works, but then your client loads a bunch of files after the first component initialization

    Conclusion:
    I guess dynamic loading is best used for widgets built for particular app, not for native Ext JS 4 components. Otherwise, it might be a good idea to use jsbuilder for a custom Ext JS 4 build and load anything further on top of that.

    Please report your experiences.
    Grgur Grisogono
    Ext JS in Action SE co-author
    Exercising awesomeness at Modus Create - Official Sencha Partner

    Get in touch for Sencha Touch Training
    @ggrgur

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

      0  

    Default


    ├Łou're right, any core component has to be set in the requires.
    Dynamic loading of scripts does not include core files, however they are resolved too. This job is done by Ext.Loader.
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  3. #3
    Sencha User
    Join Date
    Jul 2010
    Posts
    35
    Vote Rating
    0
    mmartz is on a distinguished road

      0  

    Default


    Any chance we can get an overview of what these 'built' versions of the framework actually contain (and when we might use them)?

  4. #4
    grgur's Avatar
    Join Date
    Aug 2007
    Location
    Split, Croatia
    Posts
    155
    Vote Rating
    24
    grgur has a spectacular aura about grgur has a spectacular aura about

      0  

    Default


    BTW, I was using Ext JS 4 Beta 1.

    As for now, I think I'm going with ext-all.js and dynamic loading of application classes.


    @mmartz - I'm sure it's going to be listed in ext.jsb2 once released
    Grgur Grisogono
    Ext JS in Action SE co-author
    Exercising awesomeness at Modus Create - Official Sencha Partner

    Get in touch for Sencha Touch Training
    @ggrgur

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

      0  

    Default


    Quote Originally Posted by grgur View Post
    As for now, I think I'm going with ext-all.js and dynamic loading of application classes.
    Agreed. There are still too many undeclared dependencies between internal ExtJS classes to be able to dynamically load them at this point.

Similar Threads

  1. How to use package ?
    By Ghurdyl in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 6 Nov 2010, 4:30 AM
  2. v0.3: jScout - full-featured javascript/css on-demand package loader
    By SamuraiJack1 in forum Community Discussion
    Replies: 39
    Last Post: 20 Aug 2009, 5:13 AM
  3. v0.3: jScout - full-featured javascript/css on-demand package loader
    By SamuraiJack1 in forum Ext 2.x: User Extensions and Plugins
    Replies: 2
    Last Post: 5 Aug 2008, 12:55 PM
  4. How to run AIR example in Ext 2.1 package?
    By Smash_hit in forum Ext.air for Adobe AIR
    Replies: 2
    Last Post: 4 May 2008, 4:44 AM
  5. How to use just the Dialog package?
    By franzisk in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 7 May 2007, 12:26 PM

Thread Participants: 3

Tags for this Thread