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

Dooms edited comment on CB-5488 at 4/14/14 8:46 AM:
----------------------------------------------------

An update: after a few hours more on this bug, I suspect it occurs whenever 
*any* scripts take too long to load (e.g. having several scripts over 1mb in 
size), whereafter cordova decides to quit its initialisation.

Changing the timeout value at the bottom has fixed some of the tests I have run 
this fix on.

window.setTimeout(function() {
    if (channel.onDeviceReady.state != 2) {
        console.log('deviceready has not fired after 5 seconds.');
        logUnfiredChannels(platformInitChannelsArray);
        logUnfiredChannels(channel.deviceReadyChannelsArray);
    }
}, 5000);


was (Author: dooms):
An update: after a few hours more on this bug, I suspect it occurs whenever 
*any* scripts take too long to load (e.g. having several scripts over 1mb in 
size), whereafter cordova decides to quit its initialisation.


> deviceready event not firing with jQuery Mobile
> -----------------------------------------------
>
>                 Key: CB-5488
>                 URL: https://issues.apache.org/jira/browse/CB-5488
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS, iOS
>    Affects Versions: 3.1.0
>            Reporter: Federico Kereki
>
> If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
> fire. Googling around, I found several similar reports, all pointing out that 
> if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to