News for hackers. Stuff that matters.
Re:Are mobile web apps really slow? by camus on Friday July 12, 2013 @07:31AM (#6032037)
The problem again is not really javascript, it is DOM manipulation. You can have the fastest javascript engine ever,if the bottelneck is the DOM , there is little you can do about it. And everybody doesnt own a quad-core mobile.

I like Titanium approach where the ui is native and the code is javascript,so you are basically using javascript with a specific API,not the DOM. I'd like to see more frameworks like this , or even , i'd like mobile os vendors to faciliate the use of their native framework with javascript, instead of having to use HTML5 in a webview for development. I believe that's what WP is doing. As much as i h*te MS , it is a good move.

Re:Are mobile web apps really slow? by ecopoesis on Friday July 12, 2013 @09:00AM (#6032321)
Do you have any proof that DOM manipulation is slow? This is a common refrain that I've never seen proof of (other then anecdotally). There are folks saying that the DOM is fast, and how the JS we use to manipulate it is slow. http://blog.korynunn.com/javascript/the-dom-isnt-slow-you-ar...
Re:Are mobile web apps really slow? by iknight on Friday July 12, 2013 @11:43AM (#6033173)
To be fair, I'm not sure I would endeavor to make a mobile-only web app load 10000 elements to the DOM all at once. When I set to 2000, for instance, I can get below 200ms on Android 4.1.1 in chrome.
Re:Are mobile web apps really slow? by coldtea on Friday July 12, 2013 @06:10PM (#6035564)
Below 200ms? Still nowhere smooth enough to get to 60fps.
Re:Are mobile web apps really slow? by iknight on Friday July 12, 2013 @11:40AM (#6033157)
Ran this on Android 4.1.1 in chrome and it was 913ms. Desktop was ~40ms on average.
Re:Are mobile web apps really slow? by Encosia on Saturday July 13, 2013 @03:25AM (#6036958)
Safari on an iPhone 5: 165ms. Surprised that the difference was so large.
Re:Are mobile web apps really slow? by camus on Saturday July 13, 2013 @09:36AM (#6037504)
Well , he did not say what device he was using. All android devices are not equal. You should know that or you dont know how android works.
Re:Are mobile web apps really slow? by gummydude on Friday July 12, 2013 @08:48AM (#6032282)