Slide 1

Slide 1 text

@addyosmani +AddyOsmani Frontrend, Tokyo. Mobile Web Development Workflow Improving your happiness and productivity during development

Slide 2

Slide 2 text

Έͳ͞Μ͜Μʹͪ͸ ࢲ͸ΞσΟʔΦζϚχͳͬ͠ʔ ΑΖ͘͠ͳͬ͠ʔ

Slide 3

Slide 3 text

This is the web today.

Slide 4

Slide 4 text

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

Slide 5

Slide 5 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 6

Slide 6 text

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

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

Let’s change that.

Slide 9

Slide 9 text

Developing mobile-first should now be assumed.

Slide 10

Slide 10 text

Tools can help us find and fix mobile regressions earlier.

Slide 11

Slide 11 text

How do you test across multiple devices?

Slide 12

Slide 12 text

Re-checking your site on mobile is a pain

Slide 13

Slide 13 text

Luckily tools can help us test more efficiently

Slide 14

Slide 14 text

Navigate all devices to the same URL

Slide 15

Slide 15 text

Remote Preview

Slide 16

Slide 16 text

A lo-fi, free option Remote Preview

Slide 17

Slide 17 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 18

Slide 18 text

Synchronize navigation & get screenshots.

Slide 19

Slide 19 text

Adobe Edge Inspect CC

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

Remote debugging with Weinre

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

Get device screenshots

Slide 24

Slide 24 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 25

Slide 25 text

Refresh all devices on edit

Slide 26

Slide 26 text

Grunt + LiveReload

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 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 29

Slide 29 text

Synchronize cross-device edits without saving

Slide 30

Slide 30 text

Emmet LiveStyle

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 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 33

Slide 33 text

Synchronize scrolls, clicks, interactions as well as navigation

Slide 34

Slide 34 text

GhostLab

Slide 35

Slide 35 text

Sync desktop & mobile navigation

Slide 36

Slide 36 text

Sync everything?

Slide 37

Slide 37 text

No content

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 RAW USB debugging and Port Forwarding now supported

Slide 42

Slide 42 text

iOS WebKit Debug Proxy bit.ly/webkitdebug

Slide 43

Slide 43 text

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

Slide 44

Slide 44 text

jshyDebugger Live Editing

Slide 45

Slide 45 text

jshyDebugger Timeline

Slide 46

Slide 46 text

jshyDebugger ADB plugin support

Slide 47

Slide 47 text

MIHTool bit.ly/mihtool

Slide 48

Slide 48 text

MIHTool

Slide 49

Slide 49 text

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

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

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

Slide 52

Slide 52 text

Visual regression testing

Slide 53

Slide 53 text

Wraith bit.ly/wraithapp

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

Huxley bit.ly/huxleyapp

Slide 56

Slide 56 text

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

Slide 57

Slide 57 text

Simulate real-network conditions

Slide 58

Slide 58 text

charlesproxy.com

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

Network Link Conditioner

Slide 61

Slide 61 text

slowyapp.com

Slide 62

Slide 62 text

Netem, WANEm (Linux) bit.ly/linuxnetem

Slide 63

Slide 63 text

Fiddler (Win/Mac/Linux) fiddler2.com

Slide 64

Slide 64 text

Captures all traffic Playback recorded traffic sessions

Slide 65

Slide 65 text

Devices, Simulators & Emulators

Slide 66

Slide 66 text

Screenshots or live testing?

Slide 67

Slide 67 text

BrowserStack + local tunneling

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

Sauce Labs Screenshots & Recordings

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

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

Slide 72

Slide 72 text

Do I even need an emulator? Chrome DevTools Emulation

Slide 73

Slide 73 text

Build tools

Slide 74

Slide 74 text

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

Slide 75

Slide 75 text

Grunt PageSpeed

Slide 76

Slide 76 text

Yeoman + Mobile

Slide 77

Slide 77 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 78

Slide 78 text

No content

Slide 79

Slide 79 text

Performance Insights

Slide 80

Slide 80 text

Remote debugging + DevTools Timeline

Slide 81

Slide 81 text

Rendering Performance Tooling

Slide 82

Slide 82 text

PageSpeed Insights For Mobile

Slide 83

Slide 83 text

PageSpeed Insights bit.ly/pagespeedi

Slide 84

Slide 84 text

mod_pagespeed bit.ly/modpagespeed

Slide 85

Slide 85 text

Phantomas Metrics Collector

Slide 86

Slide 86 text

No content

Slide 87

Slide 87 text

92 predefined metrics Export to JSON bit.ly/phantoma

Slide 88

Slide 88 text

Telemetry Python wrapper around RDB. bit.ly/telemetrych

Slide 89

Slide 89 text

Generate Device Art

Slide 90

Slide 90 text

Android Device Art Generator

Slide 91

Slide 91 text

bit.ly/deviceart

Slide 92

Slide 92 text

placeit.net

Slide 93

Slide 93 text

No content

Slide 94

Slide 94 text

mockuphone.com

Slide 95

Slide 95 text

No content

Slide 96

Slide 96 text

Lots of tooling options available.

Slide 97

Slide 97 text

Use tools. not rules.

Slide 98

Slide 98 text

@addyosmani +AddyOsmani ͋Γ͕ͱ͏͍͟͝·ͨ͠ͳͬ͠ʔ

Slide 99

Slide 99 text

Next up..

Slide 100

Slide 100 text

No content

Slide 101

Slide 101 text

No content