1. #1
    Sencha User putty's Avatar
    Join Date
    Jan 2008
    Location
    Queensland, Australia
    Posts
    127
    Vote Rating
    0
    putty is on a distinguished road

      0  

    Default Application loading...

    Application loading...


    Can anyone tell me or point me in the direction of an example of how the page loading is done on the EXT JS samples page? http://extjs.com/deploy/dev/examples/samples.html

    I have a large app that takes a few seconds to load on slower connections, I want to be able to give users some feedback on what is going on.

    Thanks.

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Put the loading indicator in the page as hardcoded HTML.

    Put the scripts at the bottom of the body.

    This way the page begins rendering before loading the scripts and you get to see the loading indicator.

    In your onReady function, just before you create the Viewport, delete the loading indicator.

  3. #3
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    @putty

    What stops you from viewing the source?

  4. #4
    Sencha User putty's Avatar
    Join Date
    Jan 2008
    Location
    Queensland, Australia
    Posts
    127
    Vote Rating
    0
    putty is on a distinguished road

      0  

    Default


    Thanks guys,

    Didn’t think this would be as simple as it was. Got it working in about 10 min.

    Cheers.

Thread Participants: 2