View Full Version : Application loading...

25 Apr 2009, 8:03 PM
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.


25 Apr 2009, 11:28 PM
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.

26 Apr 2009, 4:00 PM

What stops you from viewing the source? :)

29 Apr 2009, 3:15 PM
Thanks guys,

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