Sencha Con 2013: Ext JS Performance tips
Just as with Jacky's session, I didn't plan on making a separate post about this, but again the cont
Adding a loading mask like the one on the ExtJS API application is a nice way of showing the user that something is happening while their browser downloads the source code. It's also extremely easy to do.
First, place the following HTML above all of your javascript include tags, ideally just after the <body>
tag:
If you are currently including javascript files inside the <head>
, don't - put them at the bottom.
With a bit of CSS (see below), this provides a white mask over all underlying content, and a loading message. When everything has loaded, remove the mask like this:
The above simply fades out the HTML elements to reveal the now ready page. The setTimeout call gives your app a little time to render, which is useful if you're doing something like pulling external content down from the server.
Finally, here's the CSS I use to style up the loading mask. You'll need to download a loading image and stick it in the appropriate directory.
For further insights into Ext JS development, you may want to explore Ext.override - Monkey Patching Ext JS, which delves into customizing Ext JS classes while managing potential risks. Additionally, Sencha Con 2013: Ext JS Performance tips offers valuable strategies for optimizing the performance of Ext JS applications, focusing on reducing load times and improving execution efficiency.
Just as with Jacky's session, I didn't plan on making a separate post about this, but again the cont
On January 1st 2010 I officially joined Ext JS to take over the role of lead developer. After livin
OS X has a pretty little screensaver which takes a bunch of images and 'drops' them, spinning, onto