-
Notifications
You must be signed in to change notification settings - Fork 20
/
foundation.html
62 lines (49 loc) · 2.82 KB
/
foundation.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
---
title: "Performance: why and how?"
---
<div class="jumbotron">
<h1>Performance: why and how?</h1>
</div>
<div class="page-header">
<h2>Why care about Performance?</h2>
</div>
<ul>
<li>Fast sites convert users better.</li>
<li>Fast sites make impatient users happier.</li>
<li>Fast sites are cheaper — for both hosting and mobile data plans.</li>
<li>Fast sites serve more page loads, which can generate more ad revenue.</li>
</ul>
<div class="page-header">
<h2>Fundamentals of Performance</h2>
</div>
<div class="alert alert-warning">
<p>Many facets of performance are improving over time. One such change is HTTP/2, and it will cause sweeping changes to how sites download and arrive onto your computer. Some of the current optimizations that are a good idea with HTTP/1.1 will actually <em>hurt</em> your site's performance using HTTP/2. We will mark any potential regressions so you can keep the future in mind.</p>
</div>
<div class="page-header">
<h3>HTTP/1.1</h3>
</div>
<blockquote class="alert alert-info"><em><strong>Concatenate, minify, compress, shard.</strong></em></blockquote>
<div class="tools col2">
{% for tool in site.foundation %}
{% include list-tools.html %}
{% endfor %}
</div>
<div class="page-header">
<h3>HTTP/2</h3>
</div>
<blockquote class="alert alert-success"><em><strong>Ignore all the above advice.</strong></em></blockquote>
<div class="panel panel-info float-right">
<div class="panel-heading">
<h3 class="panel-title">HTTP/2 not common yet</h3>
</div>
<div class="panel-body">
<p>While HTTP/2 is on the horizon, HTTP/1.1 will not be going away soon.</p>
<p><strong><em>Therefore, today's training covers HTTP/1.1 techniques.</em></strong> These techniques will help all sites today, while HTTP/2 requires server knowledge to properly handle both types of traffic simultaneously.</p>
</div>
</div>
<p>HTTP/2 was created to address all of the performance workarounds described in the previous section about HTTP/1.1. So if your server is using the newer protocol, none of those workarounds are necessary.</p>
<p>For exmple, with HTTP/2 the server and browser can more efficiently use the connection they create between each other, and multiple files can be sent using one single connection. Thus, the gains achieved by concatenating when using HTTP1.1 is now a <strong>restriction</strong> that the server has no choice but to obey when using HTTP2.</p>
<p>If you're interested in reading about HTTP/2 in order to be prepared for the future, feel free to browse the official community site.</p>
<a class="btn btn-primary" href="http://http2.github.io/">Read about HTTP/2</a>
<a class="btn btn-primary" href="https://www.youtube.com/watch?v=ESzAUHDBlv8">Watch a video about HTTP/2</a>
<a class="btn btn-info" href="https://http2.akamai.com/demo" target="_blank">See a demo of HTTP/2</a>