-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·95 lines (87 loc) · 3.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Mobile First - Front-end for the forefront of the web</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Kaixhin <design@kaixhin.com>">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/sky.css" id="theme">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body><!-- what, why, how -->
<div class="reveal">
<div class="slides">
<section>
<h1>Mobile First</h1>
<h3>Front-end for the forefront of the web</h3>
<p><small><a href="http://kaixhin.com">Kai Arulkumaran</a> / <a href="https://twitter.com/kailasharul">@kailasharul</a></small></p>
</section>
<section>
<h2>Numbers</h2>
<p class="fragment"><q>"10.11 percent of Website hits/pageviews come from a handheld mobile device"</q></p>
<p class="fragment"><q>"Many mobile Web users are mobile-only"</q></p>
<p class="fragment"><small><a href="http://mobithinking.com/mobile-marketing-tools/latest-mobile-stats">Mobithinking</a></small></p>
</section>
<section>
<h2>Previous approaches</h2>
<p class="fragment">"Desktop first"</p>
<p class="fragment">Responsive design</p>
</section>
<section>
<h2>Back to basics</h2>
<p class="fragment">"Content is king"</p>
<p class="fragment">Variety of devices<img width="773" height="221" src="img/analytics.png" alt="Analytics"></p>
</section>
<section>
<h2>Creating experiences</h2>
<p class="fragment">Graceful degradation</p>
<p class="fragment">Progressive enhancement</p>
<p class="fragment">Feature detection (<a href="http://modernizr.com/">Modernizr</a>)</p>
</section>
<section>
<h2>Optimize</h2>
<p class="fragment">Costs: bandwidth, requests, processing</p>
<p class="fragment">Pre-compile (eg. templates)</p>
<p class="fragment">Start with simpler code</p>
<pre class="fragment"><code>
/* Desktop first */
@media screen and (max-width: 400px) {}
/* Mobile first */
@media screen and (min-width: 600px) {}
</code></pre>
<p class="fragment">Load large images in media queries</p>
</section>
<section>
<h2>Debugging</h2>
<p class="fragment">Emulators, virtual machines, actual devices</p>
<p class="fragment"><a href="https://people.apache.org/~pmuellr/weinre/docs/latest/">weinre</a> - Web Inspector for (WebKit) mobile</p>
<p class="fragment">Client-side errors (<a href="https://qbaka.com/">Qbaka</a>)</p>
</section>
<section>
<h1>THE END</h1>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script>
Reveal.initialize({
history: true,
transition: Reveal.getQueryHash().transition || 'concave', // default/cube/page/concave/zoom/linear/fade/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
]
});
</script>
</body>
</html>