InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

jQ.Mobi – jQuery Optimized for Mobile Devices

Posted by Abel Avram on Jan 27, 2012

Sections
Development
Topics
HTML5 ,
HTML ,
Rich Internet Apps ,
Javascript ,
Markup Languages ,
Cross Platform ,
Dynamic Languages ,
iOS ,
Languages ,
Open Source ,
Mobile Development ,
Android ,
Programming ,
Operating Systems ,
Mobile

appMobi has open sourced jQ.Mobi, a rewrite of jQuery, competing with jQuery Mobile for developer mindshare.

jQ.Mobi is a partial rewrite of jQuery but optimized for HTML5 and mobile devices. It’s footprint is just 3KB compared to JQuery’s 35KB, and it is 3 times faster than jQuery on Android and 2.2x faster on iOS, according to a JSPerf test. The framework has been made available and open sourced by appMobi. The programming syntax for jQ.Mobi is identical to JQuery’s as it is its plugin development. jQ.Mobi contains only a subset of jQuery’s API, the one considered “essential” by appMobi in order to provide an identical user experience both on iOS and Android.

jQ.Mobi is made up of three components:

  • the query library
  • jQ.Ui – an UI library for WebKit browsers
  • jQ.Plugin – plugin support for WebKit browsers

A demo is set up to show framework’s capabilities.

Why would someone create a new jQeury-based JavaScript framework when the jQuery team has released jQuery Mobile 1.0 two months ago? appMobi motivates their effort by the fact that jQuery has its roots in desktop browsers, and as a result the mobile version of their framework is not well optimized and it does not provide great experience on mobile devices, especially on Android.

Todd Parker, Mobile Lead at jQuery, has acknowledged some of the problems with jQuery Mobile, and the team has just announced a maintenance release (1.0.1) fixing a large number of bugs and more widgets and improvements to come in version 1.2.

1.0.1 was released but the article makes reference to 1.2 by john bender Posted
Wow this is fast by Roopesh Shenoy Posted
Competition is good by idris yuce Posted
  1. Back to top

    1.0.1 was released but the article makes reference to 1.2

    by john bender

    The next point release for us will be 1.1. 1.0.1 is a patch release.

  2. Back to top

    Wow this is fast

    by Roopesh Shenoy

    I agree, JQuery mobile demo feels clunky compared to jQ.mobi demo even on a desktop browser.

  3. Back to top

    Competition is good

    by idris yuce

    Competition is good and always brings quality for the user as in this case.

Educational Content

Evolution in Data Integration From EII to Big Data

Approaches to integrating data are changing with emergence of cloud computing.

Winning Hearts and Minds: How to Embed UX from Scratch in a Large Organization

Michele Ide-Smith presents the lessons learned in the process of introducing UX principles and techniques into a large organization through a series of small steps.

LMAX Disruptor: 100K TPS at Less than 1ms Latency

Dave Farley and Martin Thompson discuss solutions for doing low-latency high throughput transactions based on the Disruptor concurrency pattern.

Thoughts on Test Automation in Agile

Rajneesh Namta shares his thoughts, experiences, and some of the critical lessons learned while implementing software test automation on a recent Agile project.

Actor Interaction Patterns

Dale Schumacher presents several patterns of actor interaction that can be used in collaborative programs written in any language.

Scalaz: Functional Programming in Scala

Rúnar Bjarnason discusses Scalaz, a Scala library of pure data structures, type classes, highly generalized functions, and concurrency abstractions to perform functional programming in Scala.

Faster, Better, Higher – But How?

One of the main challenges when designing software architecture is considering quality attributes. Not only their design turns out to be difficult, but also the specification of these attributes.

Software Naturalism - Embracing the Real Behind the Ideal

Michael Feathers analyzes real code bases concluding that code is not nearly as beautiful as designers aspire to, discussing the everyday decisions that alter the code bit by bit.