Upgrade to Pro — share decks privately, control downloads, hide ads and more …

jQuery Mobile: Sites That Feel Like Apps

jQuery Mobile: Sites That Feel Like Apps

jQuery Mobile is a cross-platform framework made for smartphones and tablets. With its HTML5 interface, it looks and feels like an app. This presentation will teach you how to quickly create a mobile front-end with little effort. It will also feature a case study of adapting an existing web application to the mobile.

GitHub: https://github.com/afilina/demo_jqm

Anna Filina

August 17, 2013
Tweet

More Decks by Anna Filina

Other Decks in Programming

Transcript

  1. 3 Anna Filina • Developer, mentor, project manager. • Fast

    & cost-effective delivery. • Writing a book: 10 warning signs in IT projects. • ConFoo organizer
  2. 5 Why choose mobile site? • Quick and inexpensive. •

    Point of entry for first-time users. • No download. • Others link to your site.
  3. 7 Challenges • Development takes time. • UI not suited

    for mobile. • Too many variables: • devices, • browsers, • capabilities.
  4. 8 Capabilities • Viewport size. • Pointing method. • Full

    keyboard. • Images support. • Number of colors. • Percent width • etc.
  5. 9 Solution: jQuery Mobile • One codebase. • JavaScript framework.

    • Site looks the same everywhere. • UI adapted for mobile. • Works on many devices.
  6. 12 Mobile-specific events • Tap: quick or hold. • Swipe:

    left or right. • Orientation change.
  7. 24

  8. 25

  9. 26

  10. 27 Improvements • No zooming required. • Search box to

    filter list items. • The entire block is clickable. • Less info to reduce clutter. • Separators to indicate days.
  11. 29

  12. 30 Improvements • No zooming required. • Collapsible blocks: see

    available info without scrolling. • Share buttons always visible.
  13. 34 Long lists • Consider splitting into groups. • Few

    groups: use a navigation bar. • Many groups: use intermediate list.
  14. 35 Navigation • Use lists where appropriate. • Add back

    and/or home buttons. • Describe links.
  15. 36 Performance • Keep transitions to minimum. • Slow devices.

    • Loses precious time. • Magnetic ink’s refresh rate.
  16. 37 Round trips • Minimize round-trips. • Use multi-page documents.

    • Use sprite maps. Page A: 2.1KB Page B: 2.2KB Combined: 3.6KB
  17. 38 Sprite map a.icon { background-image: url(/images/icons.png); width: 18px; height:

    18px; } a.icon.back { background-position: -18px -0px; }
  18. 44 PhoneGap • Convert your mobile UI to a native

    app. • Supports 7 platforms. • Saves even more money.
  19. 45 Resources • jQuery Mobile: http://jquerymobile.com • Sprite maps: http://www.alistapart.com/articles/sprites/

    • UI builder: http://www.codiqa.com • ThemeRoller: http://jquerymobile.com/themeroller/ • PhoneGap: http://phonegap.com/