Oct 23, 2010

JQuery set to tackle mobile Web development

LONDON–Countless developers use jQuery software tools today to provide advanced Web sites and to ease the difficulties of spanning multiple browsers.

Starting in about two weeks, though, they will start being able to extend their reach to the fast-growing world of the mobile Web as well. That’s when Mozilla plans to release the alpha version of jQuery Mobile, jQuery founder John Resig told attendees of the Future of Web Apps conference here Tuesday.
jQuery is a library of pre-written JavaScript code that browsers can download when loading a Web site. jQuery Mobile is an extra option geared to reach a range of mobile browsers.

“We’re hoping to provide easier tools for making a scalable user interface,” Resig said in an interview at the conference. Specifically, he hopes to release the alpha version on September 16 at a jQuery conference in Boston, he said.

One major goal of the project is to reach more than the top-tier mobile Web browsers such as those used in Apple’s iOS, Google’s Android, and Hewlett-Packard’s Web OS, he said. jQuery Mobile will also reach BlackBerry OS and mobile versions of Windows, he said.

Many Web developers, if they support any mobile devices at all, support only iPhone or Android devices, he said.

“That’s because that’s what was sitting in front of them. What’s unfortunate is that ignores the larger issue,” he said, pointing to StatCounter Web browser usage statistics that show Web those developers are neglecting their major market.

“Opera is the most popular [mobile] browser, followed by BlackBerry, which has gained an impressive 10 percentage points of usage share in the last year, he said. iPhone, in contrast, is tied for third place and actually losing share when it comes to overall mobile browsing usage.

StatCounter shows BlackBerry rising in importance in mobile browsing.

(Credit: StatCounter)

Mobile Web development is of course different from programming for browsers on personal computers, with their large screens and powerful hardware. Mobile Web developers should concentrate on sites that quickly present users with an opportunity to do what they need rather than the full panoply of options that typically are available on desktop browsers, Resig said.

That, of course, raises the difficulty of separate mobile and PC Web sites. Resig hopes jQuery Mobile will help to span the gap, though.

Resig showed the first public demonstrations of jQuery Mobile at the conference. The interface worked on Google’s Chrome browser on Mac OS X and on developer-kit versions of BlackBerry OS and Web OS browsers also running on his Mac.

jQuery Mobile is designed to use native technology such as scroll bars as much as possible. In contrast, he said, Google tried JavaScript-based scroll bars with the mobile Web version of Gmail, but it worked poorly in part because of performance.

“Everything started to feel wrong,” he said. “It was very, very noticeable. It gives you a negative impression.”

With jQuery Mobile, “wherever possible, we use the native capabilities of the browser,” he said.

A big challenge is accommodating the diversity of mobile browsers, many of which offer poor support for JavaScript or other useful technologies. Opera, for example, don’t support the increasingly important CSS (Cascading Style Sheet) technology for Web page formatting.

“Unlike on the desktop, there are a lot of really, really bad mobile browsers,” Resig said

No comments: