Slide 1

Slide 1 text

MOBILE WORKFLOW IMPROVING YOUR MOBILE WEB DEVELOPMENT PRODUCTIVITY @addyosmani

Slide 2

Slide 2 text

This is the web today.

Slide 3

Slide 3 text

"More people have access to mobile than to running water and toothbrushes" http://blogs.worldbank.org/africacan/more-cell-phones-than-toilets

Slide 4

Slide 4 text

"87% of mobile users expect sites to load at least as fast, or faster than on their desktop." http://www.strangeloopnetworks.com/web-performance-infographics/

Slide 5

Slide 5 text

"57% will abandon a site after waiting 3 seconds for a page to load" http://www.strangeloopnetworks.com/web-performance-infographics/

Slide 6

Slide 6 text

This is most of us today. This is most developers today.

Slide 7

Slide 7 text

Let’s change that.

Slide 8

Slide 8 text

Developing mobile-first should now be assumed.

Slide 9

Slide 9 text

Tools can help us find and fix mobile regressions earlier.

Slide 10

Slide 10 text

How do you test across multiple devices?

Slide 11

Slide 11 text

Re-checking your site on mobile is a pain

Slide 12

Slide 12 text

Luckily tools can help us test more efficiently

Slide 13

Slide 13 text

Navigate all devices to the same URL

Slide 14

Slide 14 text

Remote Preview

Slide 15

Slide 15 text

A lo-fi, free option Remote Preview

Slide 16

Slide 16 text

Remote Preview [+] Free! [-] Loads page into iframe [-] Requires user to type url in page [+] Central place to change url to load into iframe after initial set-up bit.ly/remotepreview

Slide 17

Slide 17 text

Synchronize navigation & get screenshots.

Slide 18

Slide 18 text

Adobe Edge Inspect CC

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

Remote debugging with Weinre

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

Get device screenshots

Slide 23

Slide 23 text

Adobe Edge Inspect [-] Displays site in a WebView [+] Supports live reload [+] Extension to load any page you view in Chrome [-] Can’t account for localhost (i.e. switch to ip addr. of machine on local network) [+] Remote Inspect via Weinre bit.ly/edgeinspect

Slide 24

Slide 24 text

Refresh all devices on edit

Slide 25

Slide 25 text

Grunt + LiveReload

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

Grunt + LiveReload [+] Free! [+] Easily see how each change you save looks across devices [+] Works with any modern mobile browser [-] Requires you to use Grunt for your build process bit.ly/gruntsync

Slide 28

Slide 28 text

Synchronize cross-device edits without saving

Slide 29

Slide 29 text

Emmet LiveStyle

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

Emmet LiveStyle [+] Free! [+] Works with Chrome, Safari and Sublime Text [+] Cross-platform [-] Requires you to install a package or extension livestyle.emmet.io

Slide 32

Slide 32 text

Synchronize scrolls, clicks, interactions as well as navigation

Slide 33

Slide 33 text

GhostLab

Slide 34

Slide 34 text

Sync desktop & mobile navigation

Slide 35

Slide 35 text

Sync everything?

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

Even syncs forms, scroll, clicks and supports LiveReload.

Slide 38

Slide 38 text

Remote debugging Also done through Weinre

Slide 39

Slide 39 text

Ghostlab [+] Creates server to folder contents [+] Syncs scrolls, clicks and reloads [-] Needs typing into browser on each device [+] Allows to match up scrolling and input [-] OS X Only [+] Debugging via Weinre bit.ly/ghostapp

Slide 40

Slide 40 text

Mobile Debugging

Slide 41

Slide 41 text

DevTools Remote Debugging Many improvements over the past year

Slide 42

Slide 42 text

RAW USB Debugging! USB debugging without a plugin

Slide 43

Slide 43 text

Firefox for Android + ADB

Slide 44

Slide 44 text

Remote debugging Safari

Slide 45

Slide 45 text

Debug iOS WebView

Slide 46

Slide 46 text

iOS WebKit Debug Proxy bit.ly/webkitdebug

Slide 47

Slide 47 text

Debug WebView/PhoneGap on Android

Slide 48

Slide 48 text

jshyDebugger Debug mobile web applications and hybrid/WebView/PhoneGap apps on Android devices

Slide 49

Slide 49 text

jshyDebugger Live Editing

Slide 50

Slide 50 text

jshyDebugger Timeline

Slide 51

Slide 51 text

jshyDebugger ADB plugin support

Slide 52

Slide 52 text

Debug directly on iOS

Slide 53

Slide 53 text

MIHTool bit.ly/mihtool

Slide 54

Slide 54 text

MIHTool

Slide 55

Slide 55 text

Remote JavaScript consoles

Slide 56

Slide 56 text

jsConsole bit.ly/jsconsole Remotely inject code into and debug any browser window or device.

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

Aardwolf Remote JavaScript debugger for Android / iOS / Windows Phone 7 / BlackBerry OS 6 bit.ly/aardwolfapp

Slide 59

Slide 59 text

Simulate real-network conditions

Slide 60

Slide 60 text

charlesproxy.com

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

Network Link Conditioner

Slide 63

Slide 63 text

slowyapp.com

Slide 64

Slide 64 text

Netem, WANEm (Linux) bit.ly/linuxnetem

Slide 65

Slide 65 text

Fiddler (Win/Mac/Linux) fiddler2.com

Slide 66

Slide 66 text

Captures all traffic Playback recorded traffic sessions

Slide 67

Slide 67 text

Visual regression testing

Slide 68

Slide 68 text

Wraith bit.ly/wraithapp

Slide 69

Slide 69 text

No content

Slide 70

Slide 70 text

Huxley bit.ly/huxleyapp

Slide 71

Slide 71 text

PhantomCSS bit.ly/phantomcss A CasperJS module for visual regression testing

Slide 72

Slide 72 text

Device Testing

Slide 73

Slide 73 text

It’s tough.

Slide 74

Slide 74 text

Get real devices.

Slide 75

Slide 75 text

Screenshots or live testing?

Slide 76

Slide 76 text

BrowserStack + local tunneling

Slide 77

Slide 77 text

No content

Slide 78

Slide 78 text

grunt-browserstack Useful BrowserStack task for Grunt launchpad You can launch browsers! From NodeJS! Local ones! Remote ones! Browserstack ones!

Slide 79

Slide 79 text

Sauce Labs Screenshots & Recordings

Slide 80

Slide 80 text

No content

Slide 81

Slide 81 text

grunt-saucelabs Grunt task running tests using Sauce Labs. Supports Qunit and Jasmine tests node-saucelabs Node wrapper around BrowserStack API

Slide 82

Slide 82 text

Device Anywhere

Slide 83

Slide 83 text

Simulators & Emulators bit.ly/simulatorlist Massive, well-maintained list of options available

Slide 84

Slide 84 text

Do I even need an emulator? Chrome DevTools Emulation

Slide 85

Slide 85 text

Emulate Viewport Chrome DevTools Emulation

Slide 86

Slide 86 text

Emulate Touch Events Chrome DevTools Emulation

Slide 87

Slide 87 text

Emulate Orientation Chrome DevTools Emulation

Slide 88

Slide 88 text

Emulate User Agent Chrome DevTools Emulation

Slide 89

Slide 89 text

Emulate Geolocation Chrome DevTools Emulation

Slide 90

Slide 90 text

Build tooling

Slide 91

Slide 91 text

grunt-responsive-images grunt-contrib-imagemin grunt-autoshot

Slide 92

Slide 92 text

Grunt PageSpeed

Slide 93

Slide 93 text

No content

Slide 94

Slide 94 text

Yeoman + Mobile

Slide 95

Slide 95 text

generator-mobile • Scaffold support for Bootstrap 3, TopCoat, Zurb Foundation and Pure • Generates responsive images for srcset • Generates screenshots of your site at different viewport sizes • Uses BrowserStack for cloud device testing • Includes FastClick to avoid iOS touch delays • Includes boilerplate for FullScreen API • Includes only the Modernizr feature detects your projects uses • Converts images to WebP • Includes a polyfill for async. localStorage

Slide 96

Slide 96 text

No content

Slide 97

Slide 97 text

Performance Insights

Slide 98

Slide 98 text

Remote debugging + DevTools Timeline

Slide 99

Slide 99 text

Rendering Performance Tooling

Slide 100

Slide 100 text

PageSpeed Insights For Mobile

Slide 101

Slide 101 text

PageSpeed Insights bit.ly/pagespeedi

Slide 102

Slide 102 text

mod_pagespeed bit.ly/modpagespeed

Slide 103

Slide 103 text

bit.ly/mobitest Returns total page load times, individual request headers and timings from WebPageTest using default browsers in iOS/Android/BB MobiTest

Slide 104

Slide 104 text

No content

Slide 105

Slide 105 text

Phantomas Metrics Collector

Slide 106

Slide 106 text

Is that really the logo?

Slide 107

Slide 107 text

No content

Slide 108

Slide 108 text

92 predefined metrics Export to JSON bit.ly/phantoma

Slide 109

Slide 109 text

Need more insights? Chrome Graphics team have you covered.

Slide 110

Slide 110 text

Telemetry Python wrapper around RDB. bit.ly/telemetrych

Slide 111

Slide 111 text

Generate Device Art

Slide 112

Slide 112 text

Android Device Art Generator

Slide 113

Slide 113 text

bit.ly/deviceart

Slide 114

Slide 114 text

Pro-tip: Grab a screenshot from Android adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png Using ADB:

Slide 115

Slide 115 text

placeit.net

Slide 116

Slide 116 text

No content

Slide 117

Slide 117 text

mockuphone.com

Slide 118

Slide 118 text

No content

Slide 119

Slide 119 text

Lots of tooling options available.

Slide 120

Slide 120 text

Use tools. not rules.

Slide 121

Slide 121 text

@addyosmani +AddyOsmani Thanks!

Slide 122

Slide 122 text

Next up..

Slide 123

Slide 123 text

No content

Slide 124

Slide 124 text

No content