The weird state of mobile web apps
position-absolute.com
position-absolute.com
In larger webapps, you often end up wanting an identity map for your model instances, so you don't instantiate multiple instances of the same record. At the same time, you don't want your identity map holding strong pointers to all those instances, preventing them from being GC'd if nothing else is using them.
Over time your identity map just fills up with unused stuff and your app is killed.
Finally, if there are low-memory warning APIs in the browser, I'm not yet aware of them.
Wow. That does seem backwards. What's the use-case for that sort of thing?
But you can get close using a naming convention on the objects proper, say double underscore prexix or whatnot.
What can't be easily approximated right now is weak values, for identity maps in particular.
I've also used several mobile websites that are WAY better than the app (Redbox, for instance). Depending on the use case, the browser can sometimes be the best experience, though obviously not always.
Each set of needs is a beautiful and unique snowflake. Anyone reflexively choosing Technology X solely because Company Y does(n't) is probably not qualified to decide on tech stacks.
But when you see LinkedIn push back when they had one of the best known html5 app in the appstore, that warrants questions, specially since they are farther in the process than most teams
(they created an html5 app, iterated on it for couple of months, decided to revert back because of memory performances )
The lack of teams being open about their process or them being more in the shadow certainly does not helps, we need more success story with html5 being in the appstores. It still certainly considered a risk by management teams when you associate all your mobile efforts with html5.
I'm glad we did it that way. You're always going to need a good web version and it meant we could quickly get feedback and fix stuff before committing to and app.
The bulk of the work was changing the way the API required authentication. With the webapp I was dependant on cookies/sessions so had to change quite a bit for Phonegap - so save yourself some pain there.
Finally, there are a ton of good plugins - my 2 favourites were the native header/footer - super simple to integrate and easy to use. Bear this in mind when designing your navigation.
Good luck!
http://venturebeat.com/2013/04/17/linkedin-mobile-web-breaku...
Since UIWebViews those lack access to the Nitro javascript engine, I'm surprised to see rendering performance wasn't the real reason to go native.
However, I can attest that Javascript/browser memory leakage is a very real problem. It's manageable, but also very easy to screw up.
Things you need to be careful is too much animations at the same time & accessing and modifying the DOM while you animate, you need to "block access", something IOS does natively it seems.
But for Android that's another story, one device it's goint to be pretty good, on another it's complete crap and you need to deactivate animations all together.
Try this out http://premii.com/hn - Hacker news webapp. I couldn't get same performance on chrome. Even Android browser performs better when it comes to animation.
Try it out and let me know if you find any with login capability.