You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Filip Maj (Commented) (JIRA)" <ji...@apache.org> on 2012/04/16 22:42:29 UTC
[jira] [Commented] (CB-487) Call to Device.setInfo() from
cordova-ios disables asynchronous loading of a cordova-js
[ https://issues.apache.org/jira/browse/CB-487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255024#comment-13255024 ]
Filip Maj commented on CB-487:
------------------------------
To be clear, the Android implementation waits for a call from the WebView - but if it does not happen it will automatically show the WebView after 2 seconds.
I'm all for unification across platforms but really, this is a "feature" that is just legacy. I would prefer we ask the question "what is the right thing to do during loading for the WebView" and answer that question first, and then move on from there.
> Call to Device.setInfo() from cordova-ios disables asynchronous loading of a cordova-js
> ---------------------------------------------------------------------------------------
>
> Key: CB-487
> URL: https://issues.apache.org/jira/browse/CB-487
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.6.0
> Reporter: Pavel Zubkou
> Assignee: Shazron Abdullah
>
> On a cordova-android project native side waits before client signals that it is ready. This allows to asynchronously load cordova-js code.
> But on a cordova-ios project developer must include script tag into HTML to synchronously load cordova-js because native side expects that it will be available when executing [CDVViewController webViewDidFinishLoad].
> Is it possible to unify this functionality among platform, to not except that cordova-js will be ready before DOMContentLoad?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira