I use PhoneGap / Cordova to create an application for iOS and Android. With standard behavior, webView is not displayed until JavaScript is initialized and the Cordoba API is ready. Therefore, until I call:
document.addEventListener('deviceready', this.onDeviceReady, false);
... the screen is completely blank. Only after the deviceready call was initialized and the Cordoba API loaded the webView did it become visible.
I would like to show webView as soon as possible, without delay, so that static HTML elements appear almost instantly, regardless of the state of Javascript. I am very good at Objective-C and look at the code, but the Cordoba library is large, and I still haven't figured out how and when the webView is displayed.
Does anyone know how I can show webView as soon as the Objective-C side loads, regardless of whether the Cordova API is ready or not? (And what could be a disadvantage, if any?)
Thanks in advance!
source
share