Does anybody have any experience building a very large mobile app with a huge DOM?
I'm building an ebook app whose goal is to have more interactivity than can be accomplished with EPUB, MOBI, iBooks, Kindle, etc. I'm trying to use PhoneGap (1.3) and jQuery Mobile (1.0) but seeing "
Received memory warning." 2-5 times before the app crashes. It does so in the iPad 5.0 simulator, on an iPad 1, and an iPad 2, both running iOS 5.0.1.
I've tried formatting the book as one giant HTML file, many interlinked HTML files, removing all the media (<img /> and <video>), removing all custom JavaScript, removing all the CSS, but nothing prevents the memory warnings and crashes. The only way the app works is if I remove jQuery Mobile entirely and load the book as one large, scrollable HTML file. This is obviously a less than ideal reading experience but jQuery Mobile seems to be the cause of the memory warnings and crashes.
Any ideas on what else I can try?