Results 1 to 3 of 3

Thread: Application sending JSON on demand, not on creation (Ext-JS 4)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default Application sending JSON on demand, not on creation (Ext-JS 4)

    http://i45.tinypic.com/scezip.jpg -> this is my problem

    When I start my application, my computer loads it 15 seconds. It loads a whole bunch of grids and things that I want to load dynamically.
    What do I have to do if I want for those grids to be loaded "on demand"? Do I have to load controllers dynamically or just the grids? And how?
    Thank you.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Do you have autoLoad set to true on the stores?
    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
    Sencha User
    Join Date
    Sep 2011
    Posts
    574
    Answers
    59
    Vote Rating
    74
      0  

    Default

    From my experience dynamic loading is always slower then loading everything at once in one file. Split files are nice for developing, but not for production.
    Of course, it requires some time to create classes, but much less then Ext itself and mostly equal to network latency of one-two requests. Sencha Tool can automate build process, if properly configured.

Tags for this Thread

Posting Permissions

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