Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

iOS 5 Does HTML5 Brilliantly

DZone's Guide to

iOS 5 Does HTML5 Brilliantly

· Web Dev Zone
Free Resource

Try RAD Studio for FREE!  It’s the fastest way to develop cross-platform Native Apps with flexible Cloud services and broad IoT connectivity. Start Your Trial Today!

If you're developing for iOS, you're probably particularly interested in how iOS handles HTML5.

Even if you love Flash, you might want to think about redirecting some of that affection, given today's news from Adobe.

Good news for iOS developers, though: iOS 5 handles HTML5 really, really well.

In fact, after firing a battery of HTML5 tests at iOS 5, Sencha concluded in no uncertain terms:

Mobile Safari continues to hold the crown as the best mobile browser, providing the best HTML5 developer platform.


That's a pretty ringing endorsement.

HTML5 Canvas is particularly impressive. Sencha's testers report:

In iOS 5, Canvas is between 5x – 8x faster. We tried two examples to see this work. First, the IE HTML5 Speed Reading Test. In iOS 4.x, the draw durations last roughly ~850ms, versus iOS 5, where they are a constant 10ms.


Blaze.io agrees, as this video vividly demonstrates:


iOS 5 also added support for Web Workers, which run JavaScript threads in the background in order to keep the main thread free. Sencha tested Web Workers on iOS, and their results came back fine.

WebGL works too -- officially for iAds only, although there is a workaround (but the resulting app can't be listed in the app store).

For more on these upgrades, consider the quick tabular overview of mobile HTML5 support at mobilehtml5.org; read Sencha's discussion of their test results, which concentrate on HTML5; or check out Blaze.io's full performance report, which addresses non-HTML5 improvements too.

Get Your Apps to Customers 5X Faster with RAD Studio. Brought to you in partnership with Embarcadero.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}