-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathslide.html
More file actions
402 lines (347 loc) · 13.5 KB
/
slide.html
File metadata and controls
402 lines (347 loc) · 13.5 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
slidez
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="slide.css" rel="stylesheet" />
<script src="slide.js" ></script>
<script src="stars.js" ></script>
</head>
<body>
<div class="content" id="content">
<div class="slide visible-slide">
<h1 class="yellow-text" style="font-size: 64px; margin-top: 120px">
JavaScript
</h1>
<h1 class="yellow-text" style="font-size: 64px; margin-top: 20px">
Minus JavaScript
</h1>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-top: 120px">
JavaScript
</h1>
<h1 class="yellow-text" style="font-size: 64px; margin-top: 20px">
Minus JavaScript
</h1>
<h2 class="white-text red-background " style="margin-top: 15px; font-size: 72px;">
+ Star Wars!
</h2>
</div>
<div class="slide" style="text-align: center; font-size: 24px;">
<h3 class="white-text" style="margin-top: 20vh;">
Who's talking?
</h3>
<h1 class="white-text blue-background" style-"font-size: 48px;">
Sarah Saltrick Meyer
</h1>
<p class="yellow-text">
Twitter: @meyerini
<span style="font-size: 36px;">
💁
</span>
</p>
<h2 class="white-text red-background " style="margin-top: 15px; font-size: 72px;">
BuzzFeed
</h2>
</div>
<div class="slide">
<img style="max-width: 100%;" src="images/star_wars_technology.gif">
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 116px; margin-top: 120px">
3 Reasons Star Wars Helps Us Understand Web Development
</h1>
</div>
<div class="slide">
<ol style="margin-top: 50px; font-size: 36px;">
<li>
Reminds us to use our powers for good.
</li>
</ol>
</div>
<div class="slide">
<ol style="margin-top: 50px; font-size: 36px;">
<li>
Reminds us to use our powers for good.
</li>
<li>
Opens up a vast world of magic and adventure.
</li>
</ol>
</div>
<div class="slide">
<ol style="margin-top: 50px; font-size: 36px;">
<li>
Reminds us to use our powers for good.
</li>
<li>
Opens up a vast world of magic and adventure.
</li>
<li>
Isn't it kind of crazy that we do this instead of working on spaceships?
</li>
</ol>
</div>
<div class="slide">
<div style="top: 25%; transform: translateY(-50%); position: relative;">
<iframe width="420" height="315" src="https://www.youtube.com/embed/Q1shS90thpA" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 116px; margin-top: 120px">
Does your website work without JavaScript?
</h1>
</div>
<div class="slide">
<img style="max-width: 100%;" src="images/tone_down_the_javascript.png">
</div>
<div class="slide">
<img style="max-width: 100%;" src="images/javascript-first-web-dev.png">
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 116px; margin-top: 120px">
There are two kinds of Web out there.
</h1>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 116px; margin-top: 120px">
E-commerce has one set of needs.
</h1>
</div>
<div class="slide">
<img style="max-width: 100%; top: 25%; transform: translateY(-50%); position: relative;" src="images/star_destroyer.gif">
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 116px; margin-top: 120px">
The "read-only web" has quite another.
</h1>
</div>
<div class="slide">
<img style="max-width: 100%;" src="images/rey_uses_force.gif">
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-top: 120px">
Did someone make you reimplement scrolling just to style the scroll bar?
</h1>
</div>
<div class="slide">
<video controls="controls" width="800" height="600" name="No URL" src="video/custom_scroll_behavior.mov">
</video>
</div>
<div class="slide">
<h1 class="yellow-text" style="margin-top: 120px; font-size: 64px;">
Ignoring accessibility is a sure path to the dark side!
</h1>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-top: 120px">
Does that functionality really need to live in a modal?
</h1>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-top: 120px">
Does that functionality really need to live in a modal?
</h1>
<h2 class="white-text blue-background " style="margin-top: 15px; font-size: 24px;">
And if it does, can you update the URL anyway?
</h2>
</div>
<div class="slide">
<video controls="controls" width="800" height="600" name="No URL" src="video/no_url.mov">
</video>
</div>
<div class="slide">
<div style="top: 25%; transform: translateY(-50%); position: relative;">
<iframe width="560" height="315" src="https://www.youtube.com/embed/xIFJLMyUwrg" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-top: 120px">
Good routing is your only hope of creating a maintainable website.
</h1>
<h2 class="white-text blue-background " style="margin-top: 15px; font-size: 24px;">
The URL must change to reflect what's on the page, or you've dealt a heavy blow to accessibilty -- both for yourself and your users.
</h2>
</div>
<div class="slide">
<h1 class="yellow-text" style="margin-top: 120px; font-size: 64px;">
The only way to make the thing work is to spin up an entire instance of your JavaScript app and have it execute error-free?
</h1>
</div>
<div class="slide">
<div style="top: 25%; transform: translateY(-50%); position: relative;">
<img style="max-width: 100%;" src="images/sarlacc.gif">
</div>
</div>
<div class="slide">
<div style="top: 25%; transform: translateY(-50%); position: relative;">
<img style="max-width: 100%;" src="images/dont_get_technical.gif">
</div>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-top: 120px; margin-left: 100px; margin-right: 100px;">
These Robots Tried to Read Your Website, and It Was Really Hard
</h1>
</div>
<div class="slide">
<div style="top: 25%; transform: translateY(-50%); position: relative;">
<img style="max-width: 100%;" src="images/human_behavior.gif">
</div>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-top: 120px; margin-left: 100px; margin-right: 100px;">
4 Cool Tips for Isomorphic JavaScript
</h1>
</div>
<div class="slide">
<ol class="yellow-text" style="margin-top: 50px; font-size: 36px;">
<li>
Create a mapping between page state and URL.
</li>
<li>
Kick off AJAX requests based on user action once page is fully loaded.
</li>
<li>
Conditionally render HTML or JSON depending on request headers.
</li>
<li>
Don't forget the back button! The History API is a webapp developer's best friend.
</li>
</ol>
</div>
<div class="slide">
<img style="max-width: 100%;" src="images/respond_to_both.png">
<!-- xhr is literally just a header -->
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-top: 120px">
We Tried Serverside Rendering, and Couldn't Believe the Speed Gains
</h1>
<h2>
Initial page loads were 50% faster without the round trip.
</h2>
</div>
<div class="slide">
<video controls="controls" height="600" name="Late Rendering NYTimes" src="video/late_rendering.mov">
</video>
</div>
<div class="slide">
<div style="top: 25%; transform: translateY(-50%); position: relative;">
<img style="max-width: 100%;" src="images/han_shot_first.gif">
</div>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-top: 120px; margin-right: 40px; margin-left: 40px;">
Do you know when you have a JavaScript error?
</h1>
</div>
<div class="slide">
<div style="top: 25%; transform: translateY(-50%); position: relative;">
<img style="max-width: 100%;" src="images/taken_care_of_everything.gif">
</div>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-top: 120px; margin-right: 40px; margin-left: 40px;">
Do you know when you have a JavaScript error?
</h1>
<h2 class="white-text blue-background " style="margin-top: 15px; font-size: 24px;">
Serverside stack traces are a lot more fun.
</h2>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-top: 120px">
Why People Won't Shut Up About Serverside Rendering
</h1>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-top: 120px">
Why People Won't Shut Up About Serverside Rendering
</h1>
<h2 clas="red-background white-text">
But what should we render on the server? Everything?
</h2>
</div>
<div class="slide">
<div style="position: relative;">
<img style="max-width: 100%;" src="images/state_of_serverside.png">
</div>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-top: 120px; margin-right: 40px; margin-left: 40px;">
6 Surprising Tips for Saving Yourself from JavaScript
</h1>
</div>
<div class="slide">
<ol class="yellow-text" style="margin-top: 50px; font-size: 28px;">
<li>
Try a golden path integration test case that runs withtout JavaScript enabled.
</li>
<li>
Infinite scrolling? Keep a "More" link.
</li>
<li>
Got a modal? Back it up with a URL.
<em>Even better, write it as a standalone page and render that into the modal!</em>
</li>
<li>
Forms? Keep their method and action attributes and make sure you'll get a response.
</li>
<li>
Never reimplement functionality browsers implement better. Loading a single HTML document with 50 images may be murder on your servers, but your user's devices are optimized for it.
</li>
<li>
Maybe your acceptance tests suck because everything is implemented with AJAX?
</li>
</ol>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 96px; margin-top: 120px">
You have one job: render comprehensible HTML quickly.
</h1>
</div>
<div class="slide">
<img style="max-width: 100%;" src="images/dont_even.jpg">
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 96px; margin-top: 120px">
JavaScript can make your life easier. It is not the best tool for every job.
</h1>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 84px; margin-top: 120px">
DISREGARDING ALL OF THIS ADVICE IS A SURE PATH TO THE DARK SIDE OF THE FORCE.
</h1>
</div>
<div class="slide">
<img style="max-width: 100%;" src="images/bad_badness.gif">
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 84px; margin-top: 120px">
DISREGARDING ALL OF THIS ADVICE IS A SURE PATH TO THE DARK SIDE OF THE FORCE.
</h1>
<h2 class="white-text blue-background " style="margin-top: 15px; font-size: 24px;">
Maybe you're into that?
</h2>
</div>
<div class="slide">
<img style="max-width: 100%;" src="images/only_a_sith.jpg">
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-left: 60px; margin-top: 120px">
Mobile first? Sure. And JavaScript last.
</h1>
</div>
<div class="slide">
<h1 class="yellow-text" style="font-size: 64px; margin-left: 60px;">
Thanks for listening!
</h1>
<img style="max-width: 100%; width: 300px;" src="images/bad_sith_do_it_well.jpg">
<h2> Come argue with me online <span style="color: yellow"> @meyerini </span> </h2>
</div>
</div>
</body>
</html>