-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
319 lines (266 loc) · 97.7 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Single page application optimization. Based on webpack, react, node and CSS-Modules</title>
<meta charset="utf-8"/>
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Shower Theme -->
<link rel="stylesheet" href="libs/shower-ribbon/styles/screen-16x10.css"/>
<link rel="stylesheet" href="libs/shower-warsawjs/styles/main.css"/>
<!-- Prism.js -->
<link rel="stylesheet" href="libs/prism/prism.css"/>
<link rel="stylesheet" href="libs/prism/custom-prism.css"/>
<link rel="stylesheet" href="custom.css"/>
</head>
<body class="shower list">
<header class="caption">
<h1>Single-page application loading time optimization. Powered by Webpack, React, Node.js and isomorphic-style-loader</h1>
<p>We talk about JavaScript. Each month in Warsaw, Poland.</p>
</header>
<section class="slide front-page">
<div class="logo">
<!-- Logo WarsawJS -->
<img src="pictures/logo/warsawjs-logo-light.png">
</div>
<div class="details">
<!-- 1. Avatar -->
<img src="pictures/person.png" width="200" height="200" alt="Speaker"/>
<!-- 2. Speaker -->
<h2>Michał Janaszek</h2>
<!-- 3. Presentation title -->
<h2><strong>"Single-page application loading time optimization. Powered by Webpack, React, Node.js and isomorphic-style-loader"</strong></h2>
<!-- 4. Presentation date -->
<h2>2016-11-09</h2>
<!-- 5. Contact the speaker -->
<h2><a href="https://twitter.com/michaljanaszek">@michaljanaszek</a></h2>
</div>
</section>
<section class="slide">
<ol>
<li>
Webpack code splitting <br />
<strong>Required: </strong> <span class="highlight">webpack</span>
</li>
<li>
Load chunks in the background <br />
<strong>Required: </strong> <span class="highlight">webpack</span>
</li>
<li>
Server side rendering <br />
<strong>Required: </strong> <span class="highlight">webpack, node, react</span> / angular 2 (?)
</li>
<li>
Isomorphic-style-loader powered by CSS Modules <br />
<strong>Required: </strong> <span class="highlight">webpack, node, react, isomorphic-style-loader</span>
</li>
</ol>
</section>
<section class="slide center-content background-image" style="background-image: url('pictures/site_bg.png');">
<h2 class="title-slide">0. Initial website</h2>
</section>
<section class="slide prism">
<h2>Server</h2>
<pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 12pt;"><span style="color:#458383;">app</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">use</span><span style="color:#000099;">(express</span><span style="color:#0000ff;">.</span><span style="color:#000099;">static(</span><span style="color:#458383;">path</span><span style="color:#0000ff;">.</span><span style="color:#000099;">join(</span>__dirname<span style="color:#0000ff;">, </span><span style="color:#cc0000;">'public'</span><span style="color:#000099;">)))</span><span style="color:#0000ff;">;<br></span><br/><span style="color:#458383;">app</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">get</span><span style="color:#000099;">(</span><span style="color:#cc0000;">'*'</span><span style="color:#0000ff;">, </span><span style="color:#000099;">(</span>req<span style="color:#0000ff;">, </span>res<span style="color:#000099;">) </span><span style="color:#0000ff;">=> </span><span style="color:#000099;">{</span><span style="color:#0000ff;"><br></span><span style="color:#0000ff;"> const </span><span style="color:#458383;">html </span><span style="color:#0000ff;">= </span><span style="color:#cc0000;">`<html><br></span><span style="color:#cc0000;"> <head><br></span><span style="color:#cc0000;"> <link rel="stylesheet" href="/style.css</span><span style="color:#cc0000;">"><br></span><span style="color:#cc0000;"> </head><br></span><span style="color:#cc0000;"> <body><br></span><span style="color:#cc0000;"> <div id="root">Loading</div><br></span><span style="color:#cc0000;"> <script async src="/bundle.js</span><span style="color:#cc0000;">"></script><br></span><span style="color:#cc0000;"> </body><br></span><span style="color:#cc0000;"> </html>`</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"> </span>res<span style="color:#0000ff;">.</span><span style="color:#7a7a43;">status</span><span style="color:#000099;">(</span><span style="color:#0000ff;">200</span><span style="color:#000099;">)</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">send</span><span style="color:#000099;">(</span><span style="color:#458383;">html</span><span style="color:#000099;">)</span><span style="color:#0000ff;">;</span><span style="color:#0000ff;"><br></span><span style="color:#000099;">})</span><span style="color:#0000ff;">;<br></span></pre>
<div class="stage">0</div>
</section>
<section class="slide prism">
<h2>Router</h2>
<pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 12pt;"><span style="color:#0000ff;">import </span><span style="font-style:italic;">Layout </span><span style="color:#0000ff;">from </span><span style="color:#cc0000;">'./Containers/Layout'</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;">import </span><span style="font-style:italic;">Home </span><span style="color:#0000ff;">from </span><span style="color:#cc0000;">'./Containers/Pages/Home'</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;">import </span><span style="color:#006600;">Talks </span><span style="color:#0000ff;">from </span><span style="color:#cc0000;">'./Containers/Pages/Talks'</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;">import </span><span style="font-style:italic;">Gallery </span><span style="color:#0000ff;">from </span><span style="color:#cc0000;">'./Containers/Pages/Gallery'</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"><br></span><span style="color:#0000ff;">const </span><span style="color:#458383;">routes </span><span style="color:#0000ff;">= </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> path</span><span style="color:#0000ff;">: </span><span style="color:#cc0000;">'/'</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#7a7a43;">component</span><span style="color:#0000ff;">: </span><span style="font-style:italic;">Layout</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">indexRoute</span><span style="color:#0000ff;">: </span><span style="color:#000099;">{ </span><span style="color:#7a7a43;">component</span><span style="color:#0000ff;">: </span><span style="font-style:italic;">Home </span><span style="color:#000099;">}</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">childRoutes</span><span style="color:#0000ff;">: </span><span style="color:#000099;">[<br></span><span style="color:#000099;"> { path</span><span style="color:#0000ff;">: </span><span style="color:#cc0000;">'talks'</span><span style="color:#0000ff;">, </span><span style="color:#7a7a43;">component</span><span style="color:#0000ff;">: </span><span style="color:#006600;">Talks </span><span style="color:#000099;">}</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">{ path</span><span style="color:#0000ff;">: </span><span style="color:#cc0000;">'gallery'</span><span style="color:#0000ff;">, </span><span style="color:#7a7a43;">component</span><span style="color:#0000ff;">: </span><span style="font-style:italic;">Gallery </span><span style="color:#000099;">}</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">]</span><span style="color:#0000ff;">,<br></span><span style="color:#000099;">}</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"><br></span><span style="color:#0000ff;">export default </span><span style="color:#458383;">routes</span><span style="color:#0000ff;">;<br></span></pre>
<div class="stage">0</div>
</section>
<section class="slide prism">
<h2>Layout</h2>
<pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 12pt;"><span style="color:#0000ff;">import </span><span style="color:#cc0000;">'./layout.scss'</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;">import </span><span style="font-style:italic;">Menu </span><span style="color:#0000ff;">from </span><span style="color:#cc0000;">'../Menu'</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;">import </span><span style="font-style:italic;">Footer </span><span style="color:#0000ff;">from </span><span style="color:#cc0000;">'../Footer'</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"><br></span><span style="color:#0000ff;">const </span><span style="font-style:italic;">Layout </span><span style="color:#0000ff;">= </span>props <span style="color:#0000ff;">=> </span><span style="color:#000099;">(<br></span><span style="color:#000099;"> <</span><span style="color:#0000ff;">div </span><span style="color:#006600;">className</span><span style="color:#cc0000;">="root"</span><span style="color:#000099;">><br></span><span style="color:#000099;"> <</span><span style="color:#0000ff;">Menu </span><span style="color:#000099;">/><br></span><span style="color:#000099;"> <</span><span style="color:#0000ff;">div </span><span style="color:#006600;">className</span><span style="color:#cc0000;">="container"</span><span style="color:#000099;">><br></span><span style="color:#000099;"> {</span>props<span style="color:#0000ff;">.</span><span style="color:#000099;">children}<br></span><span style="color:#000099;"> </</span><span style="color:#0000ff;">div</span><span style="color:#000099;">><br></span><span style="color:#000099;"> <</span><span style="color:#0000ff;">Footer </span><span style="color:#000099;">/><br></span><span style="color:#000099;"> </</span><span style="color:#0000ff;">div</span><span style="color:#000099;">><br></span><span style="color:#000099;">)</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"><br></span><span style="color:#0000ff;">export default </span><span style="font-style:italic;">Layout</span><span style="color:#0000ff;">;<br></span></pre>
<div class="stage">0</div>
</section>
<section class="slide prism">
<h2>Menu</h2>
<pre style="margin-bottom: 1em; padding: 0px; border-width: 0px; border-style: initial; border-color: initial; font-variant-numeric: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Menlo; vertical-align: baseline; counter-reset: code 0; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">import </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">{ </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(69, 131, 131);">Link </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">} </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">from </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);">'react-router'</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">;<br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">import </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);">'./menu.scss'</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">;<br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);"><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">const </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: italic; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;">Menu </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">= </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">() </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">=> </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">(<br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);"> <</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">div </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 102, 0);">className</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);">="menu"</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);"> <</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">Link </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 102, 0);">className</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);">="menu--link" </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 102, 0);">activeClassName</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);">="menu--link__active" </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 102, 0);">to</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);">="/"</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);"> </span>Home<br> <span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);"></</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">Link</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">><br></span> <span style="font-family: inherit; font-size: inherit; font-variant: inherit; font-weight: inherit; margin: 0px; padding: 0px; border: 0px; font-style: italic; font-stretch: inherit; line-height: inherit; vertical-align: baseline; color: rgb(128, 128, 128);">// ... </span><br> <span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);"></</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">div</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">)</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">;<br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);"><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">export default </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: italic; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;">Menu</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">;</span></pre>
<div class="stage">0</div>
</section>
<section class="slide prism">
<h2>Webpack</h2>
<pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 12pt;">entry<span style="color:#0000ff;">: </span><span style="color:#458383;">path</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">resolve</span><span style="color:#000099;">(</span>__dirname<span style="color:#0000ff;">, </span><span style="color:#cc0000;">'src'</span><span style="color:#0000ff;">, </span><span style="color:#cc0000;">'client.js'</span><span style="color:#000099;">)</span><span style="color:#0000ff;">,<br></span><span style="color:#000099;">output</span><span style="color:#0000ff;">: </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span>path<span style="color:#0000ff;">: </span><span style="color:#458383;">path</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">resolve</span><span style="color:#000099;">(</span>__dirname<span style="color:#0000ff;">, </span><span style="color:#cc0000;">'build'</span><span style="color:#0000ff;">, </span><span style="color:#cc0000;">'public'</span><span style="color:#000099;">)</span><span style="color:#0000ff;">,</span><span style="color:#0000ff;"><br></span><span style="color:#0000ff;"> </span><span style="font-style:italic;">filename</span><span style="color:#0000ff;">: </span><span style="color:#cc0000;">'bundle.js'</span><span style="color:#0000ff;">,<br></span><span style="color:#000099;">}</span><span style="color:#0000ff;">,<br></span>module<span style="color:#0000ff;">: </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span>loaders<span style="color:#0000ff;">: </span><span style="color:#000099;">[{<br></span><span style="color:#000099;"> exclude</span><span style="color:#0000ff;">: /node_modules/,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">loader</span><span style="color:#0000ff;">: </span><span style="color:#cc0000;">'babel'</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">}</span><span style="color:#0000ff;">, </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> test</span><span style="color:#0000ff;">: </span><span style="color:#000099;">[</span><span style="color:#0000ff;">/\.scss$/, /\.css$/</span><span style="color:#000099;">]</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">loader</span><span style="color:#0000ff;">: </span><span style="font-style:italic;">ExtractTextPlugin</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">extract</span><span style="color:#000099;">(</span><span style="color:#cc0000;">'style-loader'</span><span style="color:#0000ff;">, </span><span style="color:#cc0000;">'css-loader!sass-loader'</span><span style="color:#000099;">)</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">}]</span><span style="color:#0000ff;">,<br></span><span style="color:#000099;">}</span><span style="color:#0000ff;">,<br></span><span style="color:#000099;">plugins</span><span style="color:#0000ff;">: </span><span style="color:#000099;">[</span><span style="color:#000099;"> </span><span style="color:#0000ff;">new </span><span style="font-style:italic;">ExtractTextPlugin</span><span style="color:#000099;">(</span><span style="color:#cc0000;">'style.css'</span><span style="color:#0000ff;">, </span><span style="color:#000099;">{ allChunks</span><span style="color:#0000ff;">: true </span><span style="color:#000099;">})</span><span style="color:#0000ff;"> <span style="color:#000099;">]</span><span style="color:#0000ff;">,<br></span> </span></pre>
<div class="stage">0</div>
</section>
<section class="slide times">
<h2 class="title-slide">Home route</h2>
<img src="pictures/times0.jpg" alt="times 0">
<div class="stage">0</div>
</section>
<section class="slide text-center background-image" style="background-image: url('pictures/site_bg.png');">
<h2 class="title-slide">1. Webpack code splitting</h2>
<h3 class="subtitle">(I don't need you now)</h3>
<img src="pictures/1.gif" alt="1">
<quote class="copyright">
<a href="http://24.media.tumblr.com/tumblr_m9ye2p1UbS1ryl3dho1_500.gif">
http://24.media.tumblr.com/tumblr_m9ye2p1UbS1ryl3dho1_500.gif
</a>
</quote>
</section>
<section class="slide prism">
<h2>Router</h2>
<pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 12pt;"><span style="color:#0000ff;">import </span><span style="font-style:italic;">Layout </span><span style="color:#0000ff;">from </span><span style="color:#cc0000;">'./Containers/Layout'</span><span style="color:#0000ff;">;</span><span style="color:#0000ff;"><br></span><span class="new-code"><span style="color:#0000ff;">const </span><span style="font-style:italic;">HomePage </span><span style="color:#0000ff;">= </span><span style="color:#000099;">(</span>nextState<span style="color:#0000ff;">, </span>cb<span style="color:#000099;">) </span><span style="color:#0000ff;">=> </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span>require<span style="color:#0000ff;">.</span>ensure<span style="color:#000099;">([]</span><span style="color:#0000ff;">, </span>require <span style="color:#0000ff;">=> </span>cb<span style="color:#000099;">(</span><span style="color:#0000ff;">null, </span>require<span style="color:#000099;">(</span><span style="color:#cc0000;">'./Containers/Pages/Home'</span><span style="color:#000099;">)</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">default</span><span style="color:#000099;">))</span><span style="color:#0000ff;">;<br></span><span style="color:#000099;">}</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;">const </span><span style="font-style:italic;">TalksPage </span><span style="color:#0000ff;">= </span><span style="color:#000099;">(</span>nextState<span style="color:#0000ff;">, </span>cb<span style="color:#000099;">) </span><span style="color:#0000ff;">=> </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span>require<span style="color:#0000ff;">.</span>ensure<span style="color:#000099;">([]</span><span style="color:#0000ff;">, </span>require <span style="color:#0000ff;">=> </span>cb<span style="color:#000099;">(</span><span style="color:#0000ff;">null, </span>require<span style="color:#000099;">(</span><span style="color:#cc0000;">'./Containers/Pages/Talks'</span><span style="color:#000099;">)</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">default</span><span style="color:#000099;">))</span><span style="color:#0000ff;">;<br></span><span style="color:#000099;">}</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;">const </span><span style="font-style:italic;">GalleryPage </span><span style="color:#0000ff;">= </span><span style="color:#000099;">(</span>nextState<span style="color:#0000ff;">, </span>cb<span style="color:#000099;">) </span><span style="color:#0000ff;">=> </span><span style="color:#000099;">{ </span><span style="color:#808080;font-style:italic;">/* ... */ </span><span style="color:#000099;">}</span><span style="color:#0000ff;">;</span><span style="color:#0000ff;"><br></span></span><br/><span style="color:#0000ff;">const </span><span style="color:#458383;">routes </span><span style="color:#0000ff;">= </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> path</span><span style="color:#0000ff;">: </span><span style="color:#cc0000;">'/'</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#7a7a43;">component</span><span style="color:#0000ff;">: </span><span style="font-style:italic;">Layout</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">indexRoute</span><span style="color:#0000ff;">: </span><span style="color:#000099;">{ </span><span style="color:#7a7a43;">getComponent</span><span style="color:#0000ff;">: </span><span style="font-style:italic;"><span class="new-code">HomePage</span> </span><span style="color:#000099;">}</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">childRoutes</span><span style="color:#0000ff;">: </span><span style="color:#000099;">[<br></span><span style="color:#000099;"> { path</span><span style="color:#0000ff;">: </span><span style="color:#cc0000;">'talks'</span><span style="color:#0000ff;">, </span><span style="color:#7a7a43;">getComponent</span><span style="color:#0000ff;">: </span><span style="font-style:italic;"><span class="new-code">TalksPage</span> </span><span style="color:#000099;">}</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">{ path</span><span style="color:#0000ff;">: </span><span style="color:#cc0000;">'gallery'</span><span style="color:#0000ff;">, </span><span style="color:#7a7a43;">getComponent</span><span style="color:#0000ff;">: </span><span style="font-style:italic;"><span class="new-code">GalleryPage</span> </span><span style="color:#000099;">}</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">]</span><span style="color:#0000ff;">,<br></span><span style="color:#000099;">}</span><span style="color:#0000ff;">;<br></span></pre>
<div class="stage">1</div>
</section>
<section class="slide times">
<h2 class="title-slide">Home route</h2>
<img src="pictures/times1.jpg" alt="times 1">
<div class="stage">1</div>
</section>
<section class="slide text-center background-image" style="background-image: url('pictures/site_bg.png');">
<h2 class="title-slide">2. Load chunks in the background</h2>
<h3 class="subtitle">(One code to rule them all)</h3>
<img src="pictures/2.gif" alt="2">
<quote class="copyright">
<a href="https://24.media.tumblr.com/6fd5de573bdecbc02d30024f60b745f6/tumblr_n0ya9mVKkL1t5z6j7o6_500.gif">
https://24.media.tumblr.com/6fd5de573bdecbc02d30024f60b745f6/tumblr_n0ya9mVKkL1t5z6j7o6_500.gif
</a>
</quote>
</section>
<section class="slide times">
<h2 class="title-slide">From home to talks</h2>
<img src="pictures/times2_initial.jpg" alt="times 2 initial">
<div class="stage">1</div>
</section>
<section class="slide prism">
<h2>Router</h2>
<pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 12pt;"><span style="color:#0000ff;">import </span><span style="font-style:italic;">Layout </span><span style="color:#0000ff;">from </span><span style="color:#cc0000;">'./Containers/Layout'</span><span style="color:#0000ff;">;<br></span><span class="new-code"><span style="color:#0000ff;">import </span><span style="font-style:italic;">backgroundLoader </span><span style="color:#0000ff;">from </span><span style="color:#cc0000;">'./backgroundLoader'</span><span style="color:#0000ff;">;<br></span></span><br/><span style="color:#0000ff;"><br></span><span style="color:#0000ff;">const </span><span style="font-style:italic;">HomePage </span><span style="color:#0000ff;">= </span><span style="color:#000099;">(</span>nextState<span style="color:#0000ff;">, </span>cb<span style="color:#000099;">) </span><span style="color:#0000ff;">=> </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span>require<span style="color:#0000ff;">.</span>ensure<span style="color:#000099;">([]</span><span style="color:#0000ff;">, </span>require <span style="color:#0000ff;">=> </span><span style="color:#000099;"></span><span style="color:#000099;"></span>cb<span style="color:#000099;">(</span><span style="color:#0000ff;">null, </span>require<span style="color:#000099;">(</span><span style="color:#cc0000;">'./Containers/Pages/Home'</span><span style="color:#000099;">)</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">default</span><span style="color:#000099;">)</span><span style="color:#0000ff;"></span><span style="color:#0000ff;"></span><span style="color:#000099;">)</span><span style="color:#0000ff;">;<br></span><span style="color:#000099;">}</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;">const </span><span style="font-style:italic;">TalksPage </span><span style="color:#0000ff;">= </span><span style="color:#000099;">(</span>nextState<span style="color:#0000ff;">, </span>cb<span style="color:#000099;">) </span><span style="color:#0000ff;">=> </span><span style="color:#000099;">{ </span><span style="color:#808080;font-style:italic;">/* ... */ </span><span style="color:#000099;">}</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;">const </span><span style="font-style:italic;">GalleryPage </span><span style="color:#0000ff;">= </span><span style="color:#000099;">(</span>nextState<span style="color:#0000ff;">, </span>cb<span style="color:#000099;">) </span><span style="color:#0000ff;">=> </span><span style="color:#000099;">{ </span><span style="color:#808080;font-style:italic;">/* ... */ </span><span style="color:#000099;">}</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"><br></span><span class="new-code"><span style="font-style:italic;">backgroundLoader</span><span style="color:#000099;">(</span><span style="font-style:italic;">HomePage</span><span style="color:#000099;">)</span><span style="color:#0000ff;">;<br></span><span style="font-style:italic;">backgroundLoader</span><span style="color:#000099;">(</span><span style="font-style:italic;">TalksPage</span><span style="color:#000099;">)</span><span style="color:#0000ff;">;<br></span><span style="font-style:italic;">backgroundLoader</span><span style="color:#000099;">(</span><span style="font-style:italic;">GalleryPage</span><span style="color:#000099;">)</span><span style="color:#0000ff;">;<br></span></span><br/><span style="color:#0000ff;"><br></span><span style="color:#0000ff;">const </span><span style="color:#458383;">routes </span><span style="color:#0000ff;">= </span><span style="color:#000099;">{ </span><span style="color:#808080;font-style:italic;">/* ... */ </span><span style="color:#000099;">}</span><span style="color:#0000ff;">;</span><span style="color:#0000ff;"><br></span><span style="color:#0000ff;">export default </span><span style="color:#458383;">routes</span><span style="color:#0000ff;">;<br></span></pre>
<div class="stage">2</div>
</section>
<section class="slide prism">
<h2>backgroundLoader</h2>
<pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 12pt;"><span class="new-code"><span style="color:#0000ff;">const </span><span style="color:#458383;">queue </span><span style="color:#0000ff;">= </span><span style="color:#000099;">[]</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;">let </span><span style="color:#458383;">isWaiting </span><span style="color:#0000ff;">= false;<br></span><span style="color:#0000ff;">const </span><span style="font-style:italic;">requestLoad </span><span style="color:#0000ff;">= </span><span style="color:#000099;">() </span><span style="color:#0000ff;">=> </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#0000ff;">if </span><span style="color:#000099;">(</span><span style="color:#458383;">isWaiting </span><span style="color:#0000ff;">|| !</span><span style="color:#458383;">queue</span><span style="color:#0000ff;">.</span><span style="color:#000099;">length) { </span><span style="color:#0000ff;">return; </span><span style="color:#000099;">}<br></span><span style="color:#000099;"> </span><span style="color:#0000ff;">const </span><span style="color:#458383;">loader </span><span style="color:#0000ff;">= </span><span style="color:#458383;">queue</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">pop</span><span style="color:#000099;">()</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"> </span><span style="color:#458383;">isWaiting </span><span style="color:#0000ff;">= true;<br></span><span style="color:#0000ff;"> </span><span style="color:#7a7a43;">setTimeout</span><span style="color:#000099;">(() </span><span style="color:#0000ff;">=> </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#458383;">loader</span><span style="color:#000099;">(() </span><span style="color:#0000ff;">=> </span><span style="color:#000099;">{}</span><span style="color:#0000ff;">, </span><span style="color:#000099;">() </span><span style="color:#0000ff;">=> </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#458383;">isWaiting </span><span style="color:#0000ff;">= false;<br></span><span style="color:#0000ff;"> </span><span style="font-style:italic;">requestLoad</span><span style="color:#000099;">()</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">})</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">}</span><span style="color:#0000ff;">, 200</span><span style="color:#000099;">)</span><span style="color:#0000ff;">;<br></span><span style="color:#000099;">}</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;">export default </span>loader <span style="color:#0000ff;">=> </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#458383;">queue</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">push</span><span style="color:#000099;">(</span>loader<span style="color:#000099;">)</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"> </span><span style="font-style:italic;">requestLoad</span><span style="color:#000099;">()</span><span style="color:#0000ff;">;<br></span><span style="color:#000099;">}</span><span style="color:#0000ff;">;<br></span></span></pre>
<div class="stage">2</div>
</section>
<section class="slide times">
<h2 class="title-slide">From home to talks</h2>
<img src="pictures/times2.jpg" alt="times 2">
<div class="stage">2</div>
</section>
<section class="slide text-center background-image" style="background-image: url('pictures/site_bg.png');">
<h2 class="title-slide">3. Server side rendering</h2>
<h3 class="subtitle">(Vitruvian Man is programming)</h3>
<img src="pictures/3.gif" alt="3" width="300">
<quote class="copyright">
<a href="https://upload.wikimedia.org/wikipedia/commons/a/a5/Vitruvian_jumping_jacks.gif">
https://upload.wikimedia.org/wikipedia/commons/a/a5/Vitruvian_jumping_jacks.gif
</a>
</quote>
</section>
<section class="slide prism">
<h2>Server</h2>
<pre style="margin-bottom: 1em; padding: 0px; border-width: 0px; border-style: initial; border-color: initial; font-variant-numeric: inherit; font-stretch: inherit; font-size: 11.5pt; line-height: inherit; font-family: Menlo; vertical-align: baseline; counter-reset: code 0; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span class="new-code" style="margin: 0px -8px; padding: 0px 8px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; background-color: rgb(253, 255, 202); display: inline-block; border-radius: 10px;"><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">import </span>ReactDOMServer <span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">from </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);">'react-dom/server'</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">;<br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">import </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">{ </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(69, 131, 131);">Router</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">, </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: italic; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;">match</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">, </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: italic; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;">createMemoryHistory </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">} </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">from </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);">'react-router'</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">;</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);"><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">import </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(69, 131, 131);">routes </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">from </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);">'./routes'</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">;</span></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);"><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(69, 131, 131);">app</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">.</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(122, 122, 67);">get</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">(</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);">'*'</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">, </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">(</span><font color="#000000">req</font><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">, </span><font color="#000000">res</font><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">) </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">=> </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">{<br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);"> </span><span class="new-code" style="margin: 0px -8px; padding: 0px 8px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; background-color: rgb(253, 255, 202); display: inline-block; border-radius: 10px;"><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">const </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(69, 131, 131);">history </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">= </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: italic; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;">createMemoryHistory</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">(</span>req<span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">.</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">url)</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">;<br></span></span><font color="#000000"><br></font><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);"> </span><span class="new-code" style="margin: 0px -8px; padding: 0px 8px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; background-color: rgb(253, 255, 202); display: inline-block; border-radius: 10px;"><span style="margin: 0px; padding: 0px; border: 0px; font-style: italic; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;">match</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">({ </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(69, 131, 131);">history</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">, </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(69, 131, 131);">routes </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">}</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">, </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">(</span>error<span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">, </span>redirectLocation<span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">, </span>renderProps<span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">) </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">=> </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">{<br></span></span><font color="#000000"><br></font><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);"> </span><span class="new-code" style="margin: 0px -8px; padding: 0px 8px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; background-color: rgb(253, 255, 202); display: inline-block; border-radius: 10px;"><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">const </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(69, 131, 131);">body </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">= </span>ReactDOMServer<span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">.</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">renderToString(<</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">Router </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">{</span>...renderProps<span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">} />)</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">;</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);"><br></span></span><font color="#000000"><br></font><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);"> const </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(69, 131, 131);">html </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">=</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);"> </span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);">`<html><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);"> <head></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);"><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);"> <link rel="stylesheet" href="/style.css</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);">"></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);"><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);"> </head><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);"> <body><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);"> <div id="root"></span><font color="#000000"> </font><span class="new-code" style="margin: 0px -8px; padding: 0px 8px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; background-color: rgb(253, 255, 202); display: inline-block; border-radius: 10px;">$<span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">{</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(69, 131, 131);">body</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">}</span></span><font color="#000000"> </font><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);"></div>
<script async src="/bundle.js<span style="font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; margin: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline;">"></script></span><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);"> </body><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(204, 0, 0);"> </html>`</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">;<br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);"> </span><font color="#000000">res</font><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">.</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(122, 122, 67);">status</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">(</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">200</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">)</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">.</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(122, 122, 67);">send</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">(</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(69, 131, 131);">html</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">)</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">;</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);"><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);"> </span><span class="new-code" style="margin: 0px -8px; padding: 0px 8px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; background-color: rgb(253, 255, 202); display: inline-block; border-radius: 10px;"><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">})</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">;</span></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: italic; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(128, 128, 128);"><br></span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 153);">})</span><span style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(0, 0, 255);">;</span></pre>
<div class="stage">3</div>
</section>
<section class="slide prism">
<h2>Webpack</h2>
<pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 12pt;"><span style="color:#0000ff;">const </span><span style="color:#458383;">client </span><span style="color:#0000ff;">= </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> entry</span><span style="color:#0000ff;">: </span><span style="color:#cc0000;">'client.js'</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">output</span><span style="color:#0000ff;">: </span><span style="color:#000099;">{ </span><span style="color:#808080;font-style:italic;">/* client build destination */ </span><span style="color:#000099;">}</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">target</span><span style="color:#0000ff;">: </span><span style="color:#cc0000;">'web'</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">module</span><span style="color:#0000ff;">: </span><span style="color:#000099;">{ loaders</span><span style="color:#0000ff;">: </span><span style="color:#000099;">[ </span>...commonLoaders<span style="color:#0000ff;">, </span>...clientLoaders <span style="color:#000099;">] }</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">plugins</span><span style="color:#0000ff;">: </span><span style="color:#000099;">[ </span>...commonPlugins<span style="color:#0000ff;">, </span>...clientPlugins <span style="color:#000099;">]</span><span style="color:#0000ff;">,<br></span><span style="color:#000099;">}</span><span style="color:#0000ff;">;<br></span><span class="new-code"><span style="color:#0000ff;">const </span><span style="color:#458383;">server </span><span style="color:#0000ff;">= </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> entry</span><span style="color:#0000ff;">: </span><span style="color:#cc0000;">'server.js'</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">output</span><span style="color:#0000ff;">: </span><span style="color:#000099;">{ </span><span style="color:#808080;font-style:italic;">/* server build destination */ </span><span style="color:#000099;">}</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">target</span><span style="color:#0000ff;">: </span><span style="color:#cc0000;">'node'</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">module</span><span style="color:#0000ff;">: </span><span style="color:#000099;">{ loaders</span><span style="color:#0000ff;">: </span><span style="color:#000099;">[ </span>...commonLoaders<span style="color:#0000ff;">, </span>...serverLoaders <span style="color:#000099;">] }</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">plugins</span><span style="color:#0000ff;">: </span><span style="color:#000099;">[ </span>...commonPlugins<span style="color:#0000ff;">, </span>...serverPlugins <span style="color:#000099;">]</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#000099;">externals</span><span style="color:#0000ff;">: </span><span style="color:#7a7a43;">nodeExternals</span><span style="color:#000099;">()</span><span style="color:#0000ff;">,<br></span><span style="color:#000099;">}</span><span style="color:#0000ff;">;<br></span></span><br/><span style="color:#000099;">module</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">exports </span><span style="color:#0000ff;">= </span><span style="color:#000099;">[ </span><span style="color:#458383;">client</span><span style="color:#0000ff;">, </span><span class="new-code"><span style="color:#458383;">server</span></span> <span style="color:#000099;">]</span><span style="color:#0000ff;">;<br></span></pre>
<div class="stage">3</div>
</section>
<section class="slide times">
<h2 class="title-slide">Home route</h2>
<img src="pictures/times3v2.jpg" alt="times 3">
<div class="stage">3</div>
</section>
<section class="slide text-center background-image" style="background-image: url('pictures/site_bg.png');">
<h2 class="title-slide">4. Isomorphic-style-loader powered by CSS Modules</h2>
<h3 class="subtitle">(Anarchy in the CSS)</h3>
<img src="pictures/4.gif" alt="4">
<quote class="copyright">
<a href="https://despora.de/camo/2206bbbd2d7fa9083150efdbed59c56b1c53e917/68747470733a2f2f7365636861742e6f72672f75706c6f6164732f696d616765732f7363616c65645f66756c6c5f61363164303038643165326561393261383461322e676966">
https://despora.de/camo/2206bbbd2d7fa9083150efdbed59c56b1c53e917/<br/>68747470733a2f2f7365636861742e6f72672f75706c6f6164732f696d616765732f7363616c65645f66756c6c5f61363164303038643165326561393261383461322e676966
</a>
</quote>
</section>
<section class="slide prism">
<pre style="float:left; margin-right: 110px; background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 11pt;"><span style="color:#0000ff;">._2cr2 </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">margin-right</span>: <span style="color:#cc0000;">auto</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"> </span><span style="color:#006600;">margin-left</span>: <span style="color:#cc0000;">auto</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"> </span><span style="color:#006600;">padding-left</span>: <span style="color:#0000ff;">15</span><span style="color:#cc0000;">px</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"> </span><span style="color:#006600;">padding-right</span>: <span style="color:#0000ff;">15</span><span style="color:#cc0000;">px<br></span><span style="color:#000099;">}<br></span><span style="color:#0000ff;">@media </span><span style="color:#000099;">(</span><span style="color:#006600;">min-width</span>: <span style="color:#0000ff;">768</span><span style="color:#cc0000;">px</span><span style="color:#000099;">) {<br></span><span style="color:#000099;"> </span><span style="color:#0000ff;">._2cr2 </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">width</span>: <span style="color:#0000ff;">750</span><span style="color:#cc0000;">px<br></span><span style="color:#cc0000;"> </span><span style="color:#000099;">}<br></span><span style="color:#000099;">}<br></span><span style="color:#0000ff;">@media </span><span style="color:#000099;">(</span><span style="color:#006600;">min-width</span>: <span style="color:#0000ff;">992</span><span style="color:#cc0000;">px</span><span style="color:#000099;">) {<br></span><span style="color:#000099;"> </span><span style="color:#0000ff;">._2cr2 </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">width</span>: <span style="color:#0000ff;">970</span><span style="color:#cc0000;">px<br></span><span style="color:#cc0000;"> </span><span style="color:#000099;">}<br></span><span style="color:#000099;">}<br></span><span style="color:#0000ff;">@media </span><span style="color:#000099;">(</span><span style="color:#006600;">min-width</span>: <span style="color:#0000ff;">1200</span><span style="color:#cc0000;">px</span><span style="color:#000099;">) {<br></span><span style="color:#000099;"> </span><span style="color:#0000ff;">._2cr2 </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">width</span>: <span style="color:#0000ff;">1170</span><span style="color:#cc0000;">px<br></span><span style="color:#cc0000;"> </span><span style="color:#000099;">}<br></span><span style="color:#000099;">}</span></pre>
<pre style="float:left; margin-right: 110px; background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 11pt;"><span style="color:#0000ff;">.Lkjc </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">margin-left</span>: <span style="color:#0000ff;">-15</span><span style="color:#cc0000;">px</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"> </span><span style="color:#006600;">margin-right</span>: <span style="color:#0000ff;">-15</span><span style="color:#cc0000;">px<br></span><span style="color:#000099;">}<br></span><span style="color:#0000ff;">._1Fxh, ._1hOf, ._2aAe,<br></span><span style="color:#0000ff;">._3F50, ._3hHr, ._3Lpa,<br></span><span style="color:#0000ff;">._11K6, ._14ul, .dCl_,<br></span><span style="color:#0000ff;">.IM3C, .PjtN, .Z13z </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">float</span>: <span style="color:#cc0000;">left<br></span><span style="color:#000099;">}<br></span><span style="color:#0000ff;">.IM3C </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">width</span>: <span style="color:#0000ff;">100%<br></span><span style="color:#000099;">}<br></span><span style="color:#0000ff;">._1Fxh </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">width</span>: <span style="color:#0000ff;">91.66666667%<br></span><span style="color:#000099;">}<br></span><span style="color:#0000ff;">._14ul </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">width</span>: <span style="color:#0000ff;">83.33333333%<br></span><span style="color:#000099;">}<br></span></pre>
<pre style="float:left; background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 11pt;"><span style="color:#0000ff;">._14ul </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">width</span>: <span style="color:#0000ff;">83.33333333%<br></span><span style="color:#000099;">}<br></span><span style="color:#0000ff;">._2aAe </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">width</span>: <span style="color:#0000ff;">75%<br></span><span style="color:#000099;">}<br></span><span style="color:#0000ff;">.Z13z </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">width</span>: <span style="color:#0000ff;">66.66666667%<br></span><span style="color:#000099;">}<br></span><span style="color:#0000ff;">._3Lpa </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">width</span>: <span style="color:#0000ff;">58.33333333%<br></span><span style="color:#000099;">}<br></span><span style="color:#0000ff;">._3hHr </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">width</span>: <span style="color:#0000ff;">50%<br></span><span style="color:#000099;">}<br></span><span style="color:#0000ff;">._11K6 </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> </span><span style="color:#006600;">width</span>: <span style="color:#0000ff;">41.66666667%<br></span><span style="color:#000099;">}<br></span></pre>
</section>
<section class="slide prism">
<h2>Menu</h2>
<pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 12pt;"><span style="color:#0000ff;">import </span><span style="color:#000099;">{ </span><span style="color:#458383;">Link </span><span style="color:#000099;">} </span><span style="color:#0000ff;">from </span><span style="color:#cc0000;">'react-router'</span><span style="color:#0000ff;">;<br></span><span class="new-code"><span style="color:#0000ff;">import </span>withStyles <span style="color:#0000ff;">from </span><span style="color:#cc0000;">'isomorphic-style-loader/lib/withStyles'</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;">import </span>s <span style="color:#0000ff;">from </span><span style="color:#cc0000;">'./menu.scss'</span><span style="color:#0000ff;">;<br></span></span><br/><span style="color:#0000ff;"><br></span><span style="color:#0000ff;">const </span><span style="font-style:italic;">Menu </span><span style="color:#0000ff;">= </span><span style="color:#000099;">() </span><span style="color:#0000ff;">=> </span><span style="color:#000099;">(<br></span><span style="color:#000099;"> <</span><span style="color:#0000ff;">div </span><span style="color:#006600;">className</span><span style="color:#cc0000;">= </span><span class="new-code"><span style="color:#000099;">{</span>s<span style="color:#0000ff;">.</span><span style="color:#000099;">menu}</span></span> ><br><span style="color:#000099;"> <</span><span style="color:#0000ff;">Link </span><span style="color:#006600;">className</span><span style="color:#cc0000;">= </span><span class="new-code"><span style="color:#000099;">{</span>s<span style="color:#0000ff;">.</span><span style="color:#000099;">menuLink}</span></span> <span style="color:#006600;">activeClassName</span><span style="color:#cc0000;">= </span><span class="new-code"><span style="color:#000099;">{</span>s<span style="color:#0000ff;">.</span><span style="color:#000099;">menuLinkActive}</span></span> <span style="color:#006600;">to</span><span style="color:#cc0000;">="/"</span><span style="color:#000099;">><br></span><span style="color:#000099;"> </span>Home<br> <span style="color:#000099;"></</span><span style="color:#0000ff;">Link</span><span style="color:#000099;">><br></span><span style="color:#000099;"> </span><span style="color:#808080;font-style:italic;">// ...</span><span style="color:#000099;"><br></span><span style="color:#000099;"> </</span><span style="color:#0000ff;">div</span><span style="color:#000099;">><br></span><span style="color:#000099;">)</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;"><br></span><span style="color:#0000ff;">export default </span><span class="new-code">withStyles<span style="color:#000099;">(</span>s<span style="color:#000099;">)(</span><span style="font-style:italic;">Menu</span><span style="color:#000099;">)</span><span style="color:#0000ff;">;<br></span></span></pre>
<div class="stage">4</div>
</section>
<section class="slide prism">
<h2>Server</h2>
<pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 12pt;"><span class="new-code"><span style="color:#0000ff;">const </span><span style="color:#458383;">css </span><span style="color:#0000ff;">= </span><span style="color:#000099;">[]</span><span style="color:#0000ff;">;<br></span></span><br/><span class="new-code"><span style="color:#0000ff;">const </span><span style="font-style:italic;">onInsertCss </span><span style="color:#0000ff;">= </span><span style="color:#000099;">(</span>...styles<span style="color:#000099;">) </span><span style="color:#0000ff;">=> </span><span style="color:#000099;">{ </span>styles<span style="color:#0000ff;">.</span><span style="color:#7a7a43;">forEach</span><span style="color:#000099;">(</span>s <span style="color:#0000ff;">=> </span><span style="color:#458383;">css</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">push</span><span style="color:#000099;">(</span>s<span style="color:#0000ff;">.</span><span style="color:#7a7a43;">_getCss</span><span style="color:#000099;">()))</span><span style="color:#0000ff;">; </span><span style="color:#000099;">}</span><span style="color:#0000ff;">;<br></span></span><br/><span style="color:#0000ff;">let </span><span style="color:#458383;">body </span><span style="color:#0000ff;">= </span>ReactDOMServer<span style="color:#0000ff;">.</span><span style="color:#000099;">renderToString(<br></span><span style="color:#000099;"> </span><span class="new-code"><<span style="color:#0000ff;">WithStylesContext </span><span style="color:#006600;">onInsertCss</span><span style="color:#cc0000;">=</span><span style="color:#000099;">{</span><span style="font-style:italic;">onInsertCss</span><span style="color:#000099;">}><br></span></span><br/><span style="color:#000099;"> <</span><span style="color:#0000ff;">Router </span><span style="color:#000099;">{</span>...renderProps<span style="color:#000099;">} /><br></span><span style="color:#000099;"> </span><span class="new-code"></<span style="color:#0000ff;">WithStylesContext</span><span style="color:#000099;">><br></span></span><br/><span style="color:#000099;">)</span><span style="color:#0000ff;">;<br></span><span style="color:#0000ff;">const </span><span style="color:#458383;">html </span><span style="color:#0000ff;">= </span><span style="color:#cc0000;">`<html><br></span><span style="color:#cc0000;"> <head><br></span> <span class="new-code"><span style="color:#cc0000;"><style id="css"></span>$<span style="color:#000099;">{</span><span style="color:#458383;">css</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">join</span><span style="color:#000099;">(</span><span style="color:#cc0000;">''</span><span style="color:#000099;">)}</span><span style="color:#cc0000;"></style><br></span></span><br/><span style="color:#cc0000;"> </head><br></span><span style="color:#cc0000;"> <body><br></span><span style="color:#cc0000;"> <div id="root"></span>$<span style="color:#000099;">{</span><span style="color:#458383;">body</span><span style="color:#000099;">}</span><span style="color:#cc0000;"></div><br></span><span style="color:#cc0000;"> <script async src="/bundle.js"></script><br></span><span style="color:#cc0000;"> </body><br></span><span style="color:#cc0000;"> </html>`</span><span style="color:#0000ff;">;<br></span>res<span style="color:#0000ff;">.</span><span style="color:#7a7a43;">status</span><span style="color:#000099;">(</span><span style="color:#0000ff;">200</span><span style="color:#000099;">)</span><span style="color:#0000ff;">.</span><span style="color:#7a7a43;">send</span><span style="color:#000099;">(</span><span style="color:#458383;">html</span><span style="color:#000099;">)</span><span style="color:#0000ff;">;<br></span></pre>
<div class="stage">4</div>
</section>
<section class="slide prism">
<h2>Webpack</h2>
<pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 12pt;"><span style="color:#000099;">module</span><span style="color:#0000ff;">: </span><span style="color:#000099;">{<br></span><span style="color:#000099;"> loaders</span><span style="color:#0000ff;">: </span><span style="color:#000099;">[<br></span><span style="color:#000099;"> {<br></span><span style="color:#000099;"> test</span><span style="color:#0000ff;">: </span><span style="color:#000099;">[</span><span style="color:#0000ff;">/\.scss$/, /\.css$/</span><span style="color:#000099;">]</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span class="new-code"><span style="color:#000099;">loaders</span><span style="color:#0000ff;">: </span><span style="color:#000099;">[<br></span><span style="color:#000099;"> </span><span style="color:#cc0000;">'isomorphic-style-loader'</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#cc0000;">`css-loader?</span>$<span style="color:#000099;">{</span><span style="color:#458383;">DEBUG </span><span style="color:#0000ff;">? </span><span style="color:#cc0000;">'sourceMap&' </span><span style="color:#0000ff;">: </span><span style="color:#cc0000;">'minimize&'</span><span style="color:#000099;">}</span><span style="color:#cc0000;">modules&localIdentName=<br></span><span style="color:#cc0000;"> </span>$<span style="color:#000099;">{</span><span style="color:#458383;">DEBUG </span><span style="color:#0000ff;">? </span><span style="color:#cc0000;">'[name]_[local]_[hash:base64:4]' </span><span style="color:#0000ff;">: </span><span style="color:#cc0000;">'[hash:base64:4]'</span><span style="color:#000099;">}</span><span style="color:#cc0000;">`</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#cc0000;">'sass-loader'<br></span><span style="color:#cc0000;"></span><span style="color:#000099;">]</span><span style="color:#0000ff;">,<br></span></span><br/><span style="color:#0000ff;"> </span><span style="color:#000099;">}</span><span style="color:#0000ff;">,<br></span><span style="color:#0000ff;"> </span><span style="color:#808080;font-style:italic;">// ...<br></span><span style="color:#808080;font-style:italic;"> </span><span style="color:#000099;">]<br></span><span style="color:#000099;">}</span><span style="color:#0000ff;">,<br></span></pre>
<div class="stage">4</div>
</section>
<section class="slide times">
<h2 class="title-slide">Home route</h2>
<img src="pictures/times4v2.jpg" alt="times 4">
<div class="stage">4</div>
</section>
<section class="slide center-content background-image" style="background-image: url('pictures/site_bg.png');">
<h2 class="title-slide">Final</h2>
</section>
<section class="slide times">
<h2 class="title-slide">Comparison</h2>
<img src="pictures/times_comparison.jpg" alt="times comparison">
</section>
<section class="slide">
<h2 class="title-slide">Learn more</h2>
<ol>
<li>
<strong>Addy Osmani</strong> Progressive Web Apps with React.js <br/>
<a href="https://medium.com/@addyosmani/progressive-web-apps-with-react-js-part-i-introduction-50679aef2b12#.e2hqzadmc">
Part I — Introduction
</a> <br/>
<a href="https://medium.com/@addyosmani/progressive-web-apps-with-react-js-part-2-page-load-performance-33b932d97cf2#.oah0fir3d">
Part 2 — Page Load Performance
</a> <br/>
<a href="https://medium.com/@addyosmani/progressive-web-apps-with-react-js-part-3-offline-support-and-network-resilience-c84db889162c#.54fsf2w8o">
Part 3 — Offline support and network resilience
</a> <br/>
<a href="https://medium.com/@addyosmani/progressive-web-apps-with-react-js-part-4-site-is-progressively-enhanced-b5ad7cf7a447#.p5qbx8qnu">
Part 4 — Progressive Enhancement
</a> <br/>
</li>
<li>
<strong>Maxime Fabre</strong>
<a href="https://blog.madewithlove.be/post/webpack-your-bags/">
Webpack your bags
</a>
</li>
<li>
<strong>react-starter-kit</strong>
<a href="https://github.com/kriasoft/react-starter-kit">
React Starter Kit — isomorphic web app boilerplate
</a>
</li>
<li>
<strong>app used in this presentation</strong>
<a href="https://github.com/Everettss/spa-optimization">
spa-optimization
</a>
</li>
</ol>
</section>
<section class="slide">
<h3 class="shout">See you next month at WarsawJS</h3>
</section>
<div class="progress"></div>
<footer class="badge">
<a href="https://github.com/Everettss/spa-optimization-presentation">Fork me on GitHub</a>
</footer>
<footer class="badge badge-down">
<a href="#" class="fullscreen">Fullscreen</a>
</footer>
<script src="libs/gamepad/gamepad.js"></script>
<script src="libs/shower/shower.min.js"></script>
<script src="libs/shower-gamepad/shower.gamepad.js"></script>
<script src="modules/fullscreen.js"></script>
<!-- Prism.js -->
<script src="libs/prism/prism.js"></script>
<script src="libs/prism/custom-prism.js"></script>
</body>
</html>