Skip to content

Commit 169195c

Browse files
committed
Extended HTTP2, PRPL pattern.
1 parent d9f4faf commit 169195c

File tree

1 file changed

+68
-5
lines changed

1 file changed

+68
-5
lines changed

index.html

Lines changed: 68 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -908,12 +908,75 @@ <h1 style="font-size: 3.0em;" class="fallbackColor" >Anyone really does <a href=
908908
<a href="https://developers.google.com/web/updates/2015/11/app-shell" class="credits" target="_blank">Image from Google Web Updates</a>
909909
</p>
910910
</section>
911+
912+
911913
<section>
912-
<h1>HTTP 2</h1>
913-
<img class="plain" style="max-height: 15em;" src="/src/img/HTTP_persistent_connection.svg">
914-
<p>
915-
<a href="https://en.wikipedia.org/wiki/HTTP_persistent_connection" class="credits" target="_blank">Image from Wikipedia</a>
916-
</p>
914+
<h2 style="margin-top: -4em;">HTTP 2</h2>
915+
<div class="replacement">
916+
<div style="margin-top: 0em;" class="fragment fade-out" data-fragment-index="0">
917+
<img class="plain" style="max-height: 15em;" src="/src/img/HTTP_persistent_connection.svg">
918+
<p>
919+
<a href="https://en.wikipedia.org/wiki/HTTP_persistent_connection" class="credits" target="_blank">Image from Wikipedia</a>
920+
</p>
921+
</div>
922+
<div style="margin-top: -0.5em;" class="fragment fade-in" data-fragment-index="0">
923+
<p>multiplexed downloads over a single connection</p>
924+
<h3 style="margin-top: 1em;">HTTP/2 server push</h3>
925+
<p>allows the server to preemptively send resources to the browser</p>
926+
</div>
927+
</div>
928+
</section>
929+
930+
931+
<section>
932+
933+
<h3 style="margin-top: -4em;">HTTP/1 vs. HTTP/2 </h3>
934+
<div class="replacement">
935+
<div style="margin-top: 0em;" class="fragment fade-out" data-fragment-index="0">
936+
<h4>HTTP/1</h4>
937+
<ol>
938+
<li>The browser requests the HTML file.</li>
939+
<li>The server returns the HTML file and the browser starts parsing it.</li>
940+
<li>The browser encounters the <em>&lt;link rel="stylesheet"&gt;</em> tag, and starts a new request for the stylesheet.</li>
941+
<li>The browser receives the stylesheet.</li>
942+
</ol>
943+
</div>
944+
<div style="margin-top: 0em;" class="fragment fade-in" data-fragment-index="0">
945+
<h4>HTTP/2</h4>
946+
<ol>
947+
<li>The browser requests the HTML file.</li>
948+
<li>The server returns the HTML file, and pushes the stylesheet at the same time.</li>
949+
<li>The browser starts parsing the HTML. By the time it encounters the <em>&lt;link rel="stylesheet"&gt;</em>, the stylesheet is already in the cache.</li>
950+
</div>
951+
</div>
952+
953+
</section>
954+
955+
956+
<section data-background-color="purple">
957+
<h1 style="font-size: 2em; margin-bottom: 0em;" class="fallbackColor" >The</h1>
958+
<h1 style="font-size: 4em; margin-bottom: 0em;" class="flippedColor" >PRPL</h1>
959+
<h1 style="font-size: 1.5em;" class="tertiaryColor" >pattern</h1>
960+
</section>
961+
962+
<section data-background-color="purple">
963+
<h1 style="font-size: 4em; margin-bottom: 0em;" class="flippedColor" >Push</h1>
964+
<h3 style="font-size: 2em; margin-bottom: 0em;" class="tertiaryColor" >critical resources for the initial URL route</h3>
965+
</section>
966+
967+
<section data-background-color="purple">
968+
<h1 style="font-size: 4em; margin-bottom: 0em;" class="flippedColor" >Render</h1>
969+
<h3 style="font-size: 2em; margin-bottom: 0em;" class="tertiaryColor" >initial route</h3>
970+
</section>
971+
972+
<section data-background-color="purple">
973+
<h1 style="font-size: 4em; margin-bottom: 0em;" class="flippedColor" >Pre-cache</h1>
974+
<h3 style="font-size: 2em; margin-bottom: 0em;" class="tertiaryColor" >remaining routes</h3>
975+
</section>
976+
977+
<section data-background-color="purple">
978+
<h1 style="font-size: 4em; margin-bottom: 0em;" class="flippedColor" >Lazy-load</h1>
979+
<h3 style="font-size: 2em; margin-bottom: 0em;" class="tertiaryColor" >and create remaining routes on demand</h3>
917980
</section>
918981

919982
<section>

0 commit comments

Comments
 (0)