Feeds

Yahoo!: the future is HTML5 (plus native code)

Whatever Google says

The Power of One Brief: Top reasons to choose HP BladeSystem

For Yahoo!, the future of mobile applications is HTML5. But that doesn't mean they'll run solely on the web.

"I think you'll always have [mobile] applications with native components because you'll have some elements where native will be better optimized," Sandeep Gupta, the man who oversees Yahoo!'s mobile app development, tells The Reg. "Applications will get more and more complex — especially for devices like the iPad — so you'll have more and more pages and elements. The demands are going to be greater.

"I don't think you want to hamstring yourself to a particular language for the sake of it. You want to use the right tool for the job. HTML5 works very well for content and navigation, but native will give you access to certain hardware features and effects you can't do purely with HTML5."

Next to Google's all-web-all-the-time rhetoric, this is a welcome taste of reality.

Even when Yahoo! does opt for a pure web application, it's considering the possibility of distributing such tools through existing mobile app stores, such as the Apple App Store and Google's Android Market, places that offer, yes, thousands of downloadable applications. This amounts to Yahoo! uploading little more than url links to these marketplaces, which have become the main avenue for locating mobile services.

Yahoo! just unveiled new HTML5 incarnations of its Yahoo! Mail and Yahoo! News services for the iPhone and the iPod touch, and though these have no native components — they operate solely inside the browser — the company may distribute them (or, rather, links to them) through the Apple App Store. "This is something we're talking about," Gupta says. "There's some question about whether the user will appreciate this."

Regardless, Yahoo! — one of the web's most visited destinations — will continue to straddle the line between web apps and native apps. On the iPad, Yahoo! offers a native Entertainment application for viewing all sorts of Yahoo! web content, including television listings, videos, news, comics, and book reviews.

"With Entertainment, we pre-generate a bunch of HTML5 templates and store them locally on the device," Gupta explains. "So that when we want to load a page, we don't have to download all the formatting for the page, just the content. All the chrome and the imagery [framing the content] is already there, and the raw text and content can come down much quicker."

As the company uncloaked its purely web-based Mail and News apps for the iPhone and iPod touch, it also introduced native versions of Mail and its Yahoo! Messenger for Android phones. But this is more of a temporary measure. Though the latest version of Android — 2.2, aka Froyo — offers a much-improved browser, Gupta says, earlier versions of its WebKit engine aren't quite suited to pure HTML5. Yes, following Google's lead, he's using HTML5 as a catch-all term for all sorts of modern web standards, including HTML5, CSS, and JavaScript.

"Android is a bit trickier only because its WebKit rendering pipeline isn't as efficient. But 2.2 is a big step forward."

With the arrival of Android 2.2, Yahoo! is planning purely web-based versions of Mail and other apps for the platform. And it's working on similar versions for the iPad.

Yes, even with pure web apps, code must be tailored for specific devices. "We do a lot of customization to render specifically for the display," Gupta says. "Not only to control look and feel but also formatting and font size. These kinds of things are specific to the device."

But the differences between browsers, Gupta says, is shrinking — even when it comes to disparate HTML5 implementations. "Everyone is pretty much moving to WebKit," he says. "That makes our life a lot easier."

No love for Firefox and Opera then — let alone IE9. But in addition to Apple and Google, RIM BlackBerry and Nokia have opted for WebKit. No word on when exactly Yahoo!'s "HTML5" apps for Android and iPad will arrive. But the company tells us "soon." ®

Seven Steps to Software Security

More from The Register

next story
KDE releases ice-cream coloured Plasma 5 just in time for summer
Melty but refreshing - popular rival to Mint's Cinnamon's still a work in progress
NO MORE ALL CAPS and other pleasures of Visual Studio 14
Unpicking a packed preview that breaks down ASP.NET
Secure microkernel that uses maths to be 'bug free' goes open source
Hacker-repelling, drone-protecting code will soon be yours to tweak as you see fit
Cheer up, Nokia fans. It can start making mobes again in 18 months
The real winner of the Nokia sale is *drumroll* ... Nokia
Put down that Oracle database patch: It could cost $23,000 per CPU
On-by-default INMEMORY tech a boon for developers ... as long as they can afford it
Another day, another Firefox: Version 31 is upon us ALREADY
Web devs, Mozilla really wants you to like this one
Google shows off new Chrome OS look
Athena springs full-grown from Chromium project's head
prev story

Whitepapers

Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Consolidation: The Foundation for IT Business Transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.
Application security programs and practises
Follow a few strategies and your organization can gain the full benefits of open source and the cloud without compromising the security of your applications.
How modern custom applications can spur business growth
Learn how to create, deploy and manage custom applications without consuming or expanding the need for scarce, expensive IT resources.
Securing Web Applications Made Simple and Scalable
Learn how automated security testing can provide a simple and scalable way to protect your web applications.