Results 1 to 4 of 4

Thread: need advice on large app

  1. #1
    Sencha User
    Join Date
    Mar 2008
    Posts
    58
    Vote Rating
    0
      0  

    Question 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Ext JS Premium Member
    Join Date
    Jul 2009
    Posts
    239
    Vote Rating
    2
      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 User edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    11
      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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •