-
23 Nov 2010 4:19 PM #1
startup screen
startup screen
Hi,
I've set a startup screen on my application but when it disappear i still have to watch a blank screen for about 5/6sec before my application shows up.
So, i'm wondering when in the code or what event make the startup screen disappear, and how can i reduce the life time of the following blank screen ?
(sorry for my bad english
)
-
23 Nov 2010 5:18 PM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 29
How large is your application bootstrap?? I would work to trim it down. 5-6 seconds is a long time to wait.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
24 Nov 2010 3:08 AM #3
I think that is heavy and overload screen shot that takes more time to load.
-
25 Nov 2010 12:11 AM #4
-
25 Nov 2010 12:30 AM #5
Hi,
@jgarcia : My js files are around 40/45Ko (without sencha.js)
@Derek321 : Do you mean my startup picture is too heavy ?
-
25 Nov 2010 12:39 AM #6
He probably means that your startup picture is too heavy/ to large (not in height and width, but in kilobyte)
-
25 Nov 2010 12:52 AM #7
Ok, but with a too heavy picture i would get a blank screen before the pic is displayed .. not after, am i wrong ?
-
27 Nov 2010 9:25 PM #8
You can get rid of the "white" screen (which is displayed after the startup screen) by implementing a loading mask in your html...
I'm just getting started w/ some of this, but here's what I'm doing and it seems to work with sencha-touch...
In the index.html I add a div in the body..
Note: within the div you can put the "Loading..." or whatever -- e.g. an animating image.HTML Code:<div id="loading-mask"></div>
The "loading-mask" style would have a background image pattern.. e.g...
After the loading-mask DIV I have the script elements for the application. (yes, I'm not putting the script in the <head>. My <head> only has css stylesheet <link>s.)Code:#loading-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: url(../resources/img/background_texture_grey.png); text-align: center; }
In my index.js, in the "Main.init()" function (which is called by onReady()), once all the app initialization is finished I remove the load mask with a fade animation...
Seems to work. The smaller the texture the better. Of course, it sounds like you are launching from the iDevice's home screen (and not a web download), hence the image will be read (afaik) locally.Code:if (Ext.get('loading-mask')) { var loadmask = Ext.get('loading-mask'); Ext.Anim.run(loadmask, 'fade', { easing: 'out', duration: 500, after: function() { Ext.get('loading-mask').remove(); } }); }
Btw, this is the same technique we use in Ext-JS desktop apps for the loading mask. Imo, the fade in is very elegant.
jeff
-
11 Feb 2011 7:58 AM #9
very nice solution! but somehow the fade-out animation doenst work in my case

-
8 Jul 2011 12:49 AM #10
Similar Threads
-
Killing white screen after splash screen load
By dankhan in forum Sencha Touch 1.x: DiscussionReplies: 30Last Post: 30 Jan 2012, 1:41 AM -
Startup images
By mitchellsimoens in forum Sencha Touch 1.x: DiscussionReplies: 3Last Post: 7 Oct 2010, 4:14 AM -
Startup Screen - Sencha or Phonegap
By ssdesign in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 24 Aug 2010, 3:50 PM -
How to improve Startup time?
By profunctional in forum Sencha Touch 1.x: DiscussionReplies: 3Last Post: 12 Jul 2010, 11:47 PM -
Ext Basic Startup
By craigorymaas in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 23 Sep 2009, 6:28 AM


Reply With Quote
