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 - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,025
    Answers
    3976
    Vote Rating
    1334
      0  

    Default

    Do you have autoLoad set to true on the stores?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •