cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Clelland (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-3066) Allow platform.initialize and cordovaReady event to fire before DOMContentLoaded
Date Thu, 18 Apr 2013 18:30:13 GMT

    [ https://issues.apache.org/jira/browse/CB-3066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13635483#comment-13635483
] 

Ian Clelland commented on CB-3066:
----------------------------------

Fixed now, in cordova-js, cordova-android, and cordova-ios. (iOS and Android now fire onNativeReady
earlier as well, since previously they waited for the document to finish loading, and platform.initialize
still waits for onNativeReady)
                
> Allow platform.initialize and cordovaReady event to fire before DOMContentLoaded
> --------------------------------------------------------------------------------
>
>                 Key: CB-3066
>                 URL: https://issues.apache.org/jira/browse/CB-3066
>             Project: Apache Cordova
>          Issue Type: Improvement
>    Affects Versions: 2.6.0
>            Reporter: Ian Clelland
>            Assignee: Ian Clelland
>             Fix For: 2.7.0
>
>
> In some cases, we want to have cordova plugins operational before the DOMContentLoaded
event has fired -- this can improve startup time for apps with external resources, and can
allow plugins (like the Chrome-Cordova bootstrap plugin) to manipulate the DOM before it has
finished loading.
> In order to do this, we need to remove DOMContentLoaded from the preconditions to running
cordova.platform.initialize and onCordovaReady, but require it before firing onDeviceReady.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message