[ https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13973772#comment-13973772 ]
Chris Wiggins commented on CB-5488: ----------------------------------- Hi all, I've found how to fix this temporarily for our particular application, but want to weigh in with what we're experiencing. We're using Sencha Touch, and this happens intermittently when the included app.js is 2.6MB in size. We disabled YUI compression to make it easier to find issues in the app crashing which caused the large file size. Sometimes, opening the app, from scratch, it just sits at the splash screen (and I have to force-quit), other times it opens correctly. This happens in both the iOS simulator, as well as on any iPhone. Opening the Safari debug console (when running in the simulator) and calling window.location.reload() causes the app to then load if it freezes at the splash screen. I just tried re-enabling YUI compression, which has reduced our app.js down to 704KB and this seems to fix the issue! I suspect that what's happening is our app is MISSING the deviceReady event. Is this possible? Maybe Cordova needs to wait a little bit for the web view to settle before calling deviceReady? Cheers Chris > 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)