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

Blur the Lines: Write Web Apps That Feel Native

Blur the Lines: Write Web Apps That Feel Native

Slides from my presentation with @ethanbmuller and @mutewinter at SXSW 2014.

Rob Tarr

March 09, 2014
Tweet

More Decks by Rob Tarr

Other Decks in Technology

Transcript

  1. Rob Tarr - @robtarr Jeremy Mack - @mutewinter Ethan Muller

    - @ethanmuller Blur the Lines: Write Web Apps That Feel Native
  2. A few native app cons ‣ Limited to certain devices

    - iOS vs. Android ‣ Approval processes ‣ Delay in pushing out updates ‣ Some users don’t upgrade ‣ iOS no Nitro JavaScript engine
  3. A few web app cons ‣ Limited access to APIs

    ‣ Publicity ‣ Harder to monetize
  4. iOS7 & Apple System Fonts -apple-system-body -apple-system-caption1 -apple-system-caption2 -apple-system-footnote -apple-system-headline

    -apple-system-short-body -apple-system-short-caption1 -apple-system-short-footnote -apple-system-short-headline -apple-system-short-subheadline bit.ly/1oDSoiS font: {
  5. CHALLENGE @sxblurthelines We’ll be tweeting codepen links from Fork the

    pen, complete the mission, tweet your fork to @sxblurthelines
  6. CHALLENGE Replace jQuery’s animate with Transit’s transition (Transit is included

    in this pen) Tweet your finished pen to @sxblurthelines
  7. fastclick ...mobile browsers will wait approximately 300ms from the time

    that you tap the button to fire the click event. The reason for this is that the browser is waiting to see if you are actually performing a double tap. ! https://github.com/ftlabs/fastclick
  8. CHALLENGE Add proper input type to forms (no library needed)

    Tweet your finished pen to @sxblurthelines
  9. Performance bit.ly/1mu9bTz Apps saved to the iOS home screen don’t

    get the benefits of the Nitro JavaScript engine. BUSTED
  10. CHALLENGE Add “shake to clear” to a form (shake.js library

    included) Tweet your finished pen to @sxblurthelines
  11. CHALLENGE Use Geolocation to get the user’s address (no library

    needed) Tweet your finished pen to @sxblurthelines