How to fix long start times and blank white screen for Android Apps built on Phonegap and jQTouch
In some cases an Android app built on the jQTouch extension of
the Phonegap Framework can take 10 to 30 seconds to start.
During this time the user sees a blank white screen.
Here is a workaround that reduces startup to a few seconds:
First delete the line with the standard initial call to jQTouch (e.g. $.jQTouch({options}).
Then add the following functions and style property to your body tag.
function init()
{
document.addEventListener("deviceready", onDeviceReady, false);
}
function onDeviceReady()
{
$.jQTouch({statusBar:'black'}); //the options do not matter
$('body').css('display','inline');
}
That's all! Good luck.
See also