1. #1
    Sencha User
    Join Date
    Mar 2008
    Posts
    58
    Vote Rating
    0
    johnstontrav is on a distinguished road

      0  

    Question need advice on large app

    need advice on large app


    We are planning a large mcv sencha touch 2 app but need some advice on dynamic loading of models,stores and views.

    Our app may have more than 100 views, stores and models consisting of lists,forms and html panels.

    Can we load these files dynamically so our app is small on initial load and only loads what the user wants to use. No point loading over 200 files when the user just wants to fill out 1 form.

    thanks.

  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


    So at the end of building an MVC app you should go through a build process with the SDK Tools that will build all your application classes and ST2 widgets into a single JS file. You will then load a CSS file, sencha-touch.js fie and app-all.js file. 100 classes isn't really that large, it's dependent how much code and how optimized you have made things that will be the factor.

    Plus carrier signal is a huge part of it also. If they are slow then it doesn't really matter how you are loading things.
    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
    Ext JS Premium Member
    Join Date
    Jul 2009
    Posts
    239
    Vote Rating
    2
    stephen.friedrich will become famous soon enough

      0  

    Default


    Not tried it myself, but came across it when reading through the Controllers guide in the docs:
    If you are using routes (makes a lot of sense imho), then you can use "Before Filters" to load additional classes that are only needed for specific features (routes/urls).
    See http://docs.sencha.com/touch/2-0/#!/guide/controllers

    ExtJS 4 plugins:
    varheaders - short/normal/long column header
    clearbutton - mouseover clear button in text field
    Blog: fit4dev
    ExtJS User Group Hamburg

  4. #4
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    9
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    Just FYI PR4 shipped with some serious issues with before filters - I'll get those fixed for the next release
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer