1. #1
    Ext JS Premium Member
    Join Date
    Jan 2008
    Posts
    378
    Vote Rating
    2
    silcreval is on a distinguished road

      0  

    Default What's happened to dynamic loading?

    What's happened to dynamic loading?


    Just trying ext 4.1.0 beta 1 on a simple login app.

    I use the ext 4.0 dynamic loading system for development, but get this when
    I try to use ext-4.1. I assumed 'ext-all-dev' is the new 'ext-debug' :

    Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: Ext.ux.mystuff.dialog.Login http://*****/ext/ext-debug.js Line 5659

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Did you enable it?

    Code:
    Ext.Loader.setConfig({
        enabled : true
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,512
    Vote Rating
    176
    dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of

      0  

    Default


    Quote Originally Posted by silcreval View Post
    Just trying ext 4.1.0 beta 1 on a simple login app.

    I use the ext 4.0 dynamic loading system for development, but get this when
    I try to use ext-4.1. I assumed 'ext-all-dev' is the new 'ext-debug' :

    Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: Ext.ux.mystuff.dialog.Login Line 5659
    You should be able to configure the loader and enable it:

    PHP Code:
    <script type="text/javascript" src="ext-all-dev.js"></script>
    <script type="text/javascript">
        Ext.Loader.setConfig({
            enabled: true,
            paths: {
                My: 'my_own_path'
            }
        });
    </script> 
    I'm not sure why this would be different between 4.0 and 4.1. I will have to ask Jacky.
    Don Griffin
    Engineering Manager - Frameworks (Ext JS / Sencha Touch)

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  4. #4
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,512
    Vote Rating
    176
    dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    Did you enable it?
    @Mitchell - you are too fast!
    Don Griffin
    Engineering Manager - Frameworks (Ext JS / Sencha Touch)

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  5. #5
    Sencha Premium Member
    Join Date
    May 2011
    Posts
    105
    Vote Rating
    5
    pscanlon1 is on a distinguished road

      0  

    Default


    I used to be able to load extjs class files all seperately....Did this behavior change? In 4.0 It would load a lot of files, but debugging was wayyyyy easier. Any way that we can still do this? I was using ext-all-dev.js before

  6. #6
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,512
    Vote Rating
    176
    dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of

      0  

    Default


    Quote Originally Posted by pscanlon1 View Post
    I used to be able to load extjs class files all seperately....Did this behavior change? In 4.0 It would load a lot of files, but debugging was wayyyyy easier. Any way that we can still do this? I was using ext-all-dev.js before
    ext.js has only the minimum amount of stuff to get started. You can then Ext.require('*') or only what you need and they will load as separate scripts.

    ext-all-dev.js should contain all classes. But I would have thought ext-all-dev.js would be the same experience between 4.0 and 4.1 though.
    Don Griffin
    Engineering Manager - Frameworks (Ext JS / Sencha Touch)

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  7. #7
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,624
    Vote Rating
    331
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    Quote Originally Posted by silcreval View Post
    I assumed 'ext-all-dev' is the new 'ext-debug'
    No, they're not the same. It seems that ext-debug.js and ext-dev.js are both missing from 4.1.0-beta-1.

    To decode a little:
    • all means the whole library in one file. If it doesn't have all in the name then it uses dynamic loading.
    • debug means the source is not minified.
    • dev means the source is not minified too but it also means that the console warnings have been left in.

    As ext-debug.js is missing, try using ext.js instead.

  8. #8
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    69
    Vote Rating
    0
    scancubus is on a distinguished road

      0  

    Default


    Quote Originally Posted by skirtle View Post
    No, they're not the same. It seems that ext-debug.js and ext-dev.js are both missing from 4.1.0-beta-1.

    To decode a little:
    • all means the whole library in one file. If it doesn't have all in the name then it uses dynamic loading.
    • debug means the source is not minified.
    • dev means the source is not minified too but it also means that the console warnings have been left in.
    As ext-debug.js is missing, try using ext.js instead.


    + 1,000,000

  9. #9
    Ext JS Premium Member
    Join Date
    Aug 2011
    Location
    Greenville, SC
    Posts
    137
    Vote Rating
    13
    bmacdon1 will become famous soon enough

      0  

    Default


    Any reason why they were removed / Are they going to be replaced?

    Bryan

  10. #10
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    It seems just to be an oversight. GA release will be done properly
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.