$30 off During Our Annual Pro Sale. View Details »

Tools of the Mobile Web

Tools of the Mobile Web

The deck from my talk at the inaugural Emerging Tech Meetup at Cantina.

Matthew Crist

February 29, 2012

More Decks by Matthew Crist

Other Decks in Programming


  1. MOBILE Tools of the MOBILE web

  2. Native Hybrid Mobile Web Frameworks

  3. All-in-one frameworks Sencha Touch too

  4. Frameworks allow for quick development of mobile apps. <div data-role="page"

    data-theme="b"> <div data-role="header" data-theme="b"> <h1>Place Puppy Mobile</h1> </div> <div data-role="content"> <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="a"> <li data-role="list-divider">Puppies</li> <li><a href="food.php?id=slide" data-transition="slide">Slide</a></li> <li><a href="effects.php?id=slideup" data-transition="slideup">Slide Up</a></li> </ul> <ul data-role="listview" data-dividertheme="e"> <li data-role="list-divider">List of Puppies</li> <li><a href="#" data-transition="slide">Another List of Puppies</a></li> </ul> </div> <div data-role="footer" data-position="fixed"> <h1>&copy; 2012 Place Puppy</h1> </div> </div> No Sencha Touch example could fit in a slide.
  5. Frameworks are great for quick development, but...

  6. ...framework apps just never feel right.

  7. If an app looks native, it should perform natively.

  8. Framework experiences tend to be choppy...

  9. ...and their scrolling sucks.

  10. If you’re going with the web, embrace the web. The

    good & bad parts. http://cri.st/EUli
  11. It’s possible to use a framework while embracing the web.

  12. Hybrid Mobile Web Frameworks à la carte

  13. 50% of mobile users abandon after 6-10 seconds.

  14. Server Response Processing + Page time

  15. Every library adds processing time.

  16. Backbone.js Sammy.js Spine.js Javscript MVC Agility.js Knockout.js Angular.js Ember.js Eyeballs.js

    Client side MVC...
  17. ... can be overkill. Handle with care.

  18. Micro libraries can ensure you only use what you need.

    jQuery Zepto Zest http://cri.st/EdMn http://zeptojs.com/ > >
  19. Ender.js helps too... “Build only what you need, when you

    need it.”
  20. http://microjs.com/

  21. ~92% of mobile is webkit...

  22. ...build if it were 0%

  23. Replace JavaScript animations with CSS3...

  24. ...fall back to Javascript if you have to.

  25. CSS3’s translate3d utilizes hardware acceleration. .selector {transform: translate3d(0,0,0)}

  26. Use local storage to cache to maximize performance. window.localStorage.set(‘something’, variable);

  27. Cache manifest in HTML5 can reduce calls to the server.

    <html manifest="puppy.appcache"> ... </div> CACHE MANIFEST puppy.html puppy.css jquery.min.js puppy.js puppy.html puppy.appcache
  28. Mobile Web Frameworks à la carte Responsive Design

  29. Great for content sites and some apps.

  30. Doesn’t solve 100% of the problem.

  31. Use responsive principals for device targeted sites.

  32. Frameworks à la carte Responsive Design Fin.