This document summarizes 12 JavaScript libraries for mobile web development: iScroll, SwipeView, touchSwipe, PubSubJS, ICanHaz.js, Add2home, flot, Hyphenator.js, CSI, and alternatives for each. It describes the purpose and key features of each library, and provides links to demo pages and documentation.
1 of 20
More Related Content
Open source javascript libraries for mobile web applications in 2012
3. Features
Solve iOS and Android browsers poor support for css
overflow:scroll and position:fix properties
item list scrolling with fixed header and footer
With elastic bouncing
Pull up/down to refresh
Snap to element
Customizable scrollbars
Support nested iScroll
Use hardware accelerated CSS
Compatibile Device: iPhone/iPod touch >=3.1.1, iPad >=3.2,
Android >=1.6, DesktopWebkit, Firefox, Opera desktop/mobile.
5. Features
Infinite Carousel
Simple Structure, 3 pages, good for memory
conservation for mobile browser
Use hardware accelerated CSS
Use loading technique that is developed with the
limitation of mobile browser in mind
7. Features
jQuery Plugin for capturing touch event in iPad and
iPhone
A good building block for creating touch base
application, provide various swipe event data
Can detect swipe direction (left, right, up, down)
Can detect 1 or 2 finger(s) swipe
Can set threshold to for triggering a swipe
Provide swipe status ( direction, swipe distance, swipe
phase)
Can restrict swipe direction
9. Features
A JS library for Publishsubscribe pattern
Pure JavaScript, no library dependencies
Easy to use
Much better performance compare with jQuery
custom event implementation
http://jsperf.com/pubsubjs-vs-jquery-custom-
events
11. Features
Simple and clean client side templating lib
Inspired by Mustache, but with an intuitive
template definition
Support features from Mustache, e.g. Partial,
Looping
Support dynamically add template/partial, e.g.
pull template from server using ajax
13. Features
A simple library to show a bubble dialog telling user to
add to home when it detect the device is an iPhone or
iPad
22 languages supported
With lots of options
Allow message customization
Auto detect iPhone and iPad and display bubble
location differently
15. Features
Javascript plotting library for jQuery
produces graphical plots of arbitrary datasets on-the-
fly client-side
Easy to use
Support Bar , Line, Stacked Bar, Pie Charts
Support multiple series on a chart
Support multiple y axes
Comprehensive axis setting
Support data point hovering
17. Features
Automatically hyphenate texts on website when
text exceed the container width
runs on any modern browser that supports
JavaScript and the soft hyphen (­)
automatically breaks URLs on any browser that
supports the zero width space
Support 29 languages
http://code.google.com/p/hyphenator/wiki/en_AddNew
Language
19. Features
Client side "include" an external file into html
document using ajax
Work even external file is not from a webserver, it
works for HTML5 offline case, while jquery .load()
does not work