Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Upgrading the Web Driving Support For New Standards Boston Web Performance Meetup Jonathan Klein @jonathanklein
Slide 2
Slide 2 text
Slides, Links jkle.in/boswebperf
Slide 3
Slide 3 text
About Me
Slide 4
Slide 4 text
About Me • Performance Engineer At Etsy
Slide 5
Slide 5 text
About Me • Performance Engineer At Etsy • I write the Etsy Site Performance Reports
Slide 6
Slide 6 text
About Me • Performance Engineer At Etsy • I write the Etsy Site Performance Reports • Started this group
Slide 7
Slide 7 text
No content
Slide 8
Slide 8 text
No content
Slide 9
Slide 9 text
Things You Learned
Slide 10
Slide 10 text
Things You Learned • Origin Hints
Slide 11
Slide 11 text
Things You Learned • Origin Hints • Client Hints
Slide 12
Slide 12 text
Things You Learned • Origin Hints • Client Hints • WebP
Slide 13
Slide 13 text
Things You Learned • Origin Hints • Client Hints • WebP • SPDY/HTTP 2.0
Slide 14
Slide 14 text
Things You Learned • Origin Hints • Client Hints • WebP • SPDY/HTTP 2.0 • Pre-fetching
Slide 15
Slide 15 text
What Should I Implement?
Slide 16
Slide 16 text
Things You Learned • Origin Hints • Client Hints • WebP • SPDY/HTTP 2.0 • Pre-fetching
Slide 17
Slide 17 text
HTTP Origin Hints
Slide 18
Slide 18 text
HTTP Origin Hints • IETF Draft
Slide 19
Slide 19 text
HTTP Origin Hints • IETF Draft • HTTP Response Header
Slide 20
Slide 20 text
HTTP Origin Hints • IETF Draft • HTTP Response Header • Tells the browser about server capabilities
Slide 21
Slide 21 text
HTTP Origin Hints • IETF Draft • HTTP Response Header • Tells the browser about server capabilities •OH: a,b=6,c
Slide 22
Slide 22 text
HTTP Origin Hints
Slide 23
Slide 23 text
HTTP Origin Hints • Small Request Headers
Slide 24
Slide 24 text
HTTP Origin Hints • Small Request Headers • Relative Referers
Slide 25
Slide 25 text
HTTP Origin Hints • Small Request Headers • Relative Referers • Omitting Cookies
Slide 26
Slide 26 text
HTTP Origin Hints • Small Request Headers • Relative Referers • Omitting Cookies • Sharing Connections
Slide 27
Slide 27 text
HTTP Origin Hints • Small Request Headers • Relative Referers • Omitting Cookies • Sharing Connections • Pipeline Depth
Slide 28
Slide 28 text
Reduce Header Size
Slide 29
Slide 29 text
Optimize Transfer
Slide 30
Slide 30 text
No Content Changes
Slide 31
Slide 31 text
No content
Slide 32
Slide 32 text
Things You Learned • Origin Hints • Client Hints • WebP • SPDY/HTTP 2.0 • Pre-fetching
Slide 33
Slide 33 text
Things You Learned • Origin Hints • Client Hints • WebP • SPDY/HTTP 2.0 • Pre-fetching
Slide 34
Slide 34 text
Client Hints
Slide 35
Slide 35 text
Client Hints • IETF Draft
Slide 36
Slide 36 text
Client Hints • IETF Draft • HTTP Request Header
Slide 37
Slide 37 text
Client Hints • IETF Draft • HTTP Request Header • Tells the server about browser capabilities
Slide 38
Slide 38 text
Client Hints • IETF Draft • HTTP Request Header • Tells the server about browser capabilities •CH-DPR: 2.0
Slide 39
Slide 39 text
No content
Slide 40
Slide 40 text
Will Also Specify Height/Width
Slide 41
Slide 41 text
Simplifies Markup
Slide 42
Slide 42 text
No content
Slide 43
Slide 43 text
Things You Learned • Origin Hints • Client Hints • WebP • SPDY/HTTP 2.0 • Pre-fetching
Slide 44
Slide 44 text
No content
Slide 45
Slide 45 text
Things You Learned • Origin Hints • Client Hints • WebP • SPDY/HTTP 2.0 • Pre-fetching
Slide 46
Slide 46 text
WebP
Slide 47
Slide 47 text
WebP • New image format from Google
Slide 48
Slide 48 text
WebP • New image format from Google • 25-34% smaller than JPEG
Slide 49
Slide 49 text
WebP • New image format from Google • 25-34% smaller than JPEG • Lossless Option
Slide 50
Slide 50 text
WebP • New image format from Google • 25-34% smaller than JPEG • Lossless Option • Alpha Transparency
Slide 51
Slide 51 text
WebP • New image format from Google • 25-34% smaller than JPEG • Lossless Option • Alpha Transparency • Animation
Slide 52
Slide 52 text
No content
Slide 53
Slide 53 text
Now We’re Getting Somewhere...
Slide 54
Slide 54 text
No content
Slide 55
Slide 55 text
No content
Slide 56
Slide 56 text
Key Stats First Run Bytes 576KB Start Render 932ms Speed Index 1269ms
Slide 57
Slide 57 text
Brief Aside: Speed Index
Slide 58
Slide 58 text
No content
Slide 59
Slide 59 text
Convert JPEGs to WebP
Slide 60
Slide 60 text
No content
Slide 61
Slide 61 text
Key Stats First Run WebP Difference Bytes 576KB 387KB -33% Start Render 932ms 1019ms +9% Speed Index 1269ms 1278ms <1%
Slide 62
Slide 62 text
No content
Slide 63
Slide 63 text
Its Future is Uncertain
Slide 64
Slide 64 text
No content
Slide 65
Slide 65 text
Challenges with WebP
Slide 66
Slide 66 text
Challenges with WebP • Harder to share
Slide 67
Slide 67 text
Challenges with WebP • Harder to share • Increased decoding time
Slide 68
Slide 68 text
Challenges with WebP • Harder to share • Increased decoding time • Controversial studies around quality/size
Slide 69
Slide 69 text
Challenges with WebP • Harder to share • Increased decoding time • Controversial studies around quality/size • No progressive decoding (yet)
Slide 70
Slide 70 text
Still a Big Bandwidth Win
Slide 71
Slide 71 text
Things You Learned • Origin Hints • Client Hints • WebP • SPDY/HTTP 2.0 • Pre-fetching
Slide 72
Slide 72 text
Things You Learned • Origin Hints • Client Hints • WebP • SPDY/HTTP 2.0 • Pre-fetching
Slide 73
Slide 73 text
SPDY/HTTP 2.0
Slide 74
Slide 74 text
SPDY/HTTP 2.0 • Next version of HTTP
Slide 75
Slide 75 text
SPDY/HTTP 2.0 • Next version of HTTP • HTTP Multiplexing
Slide 76
Slide 76 text
SPDY/HTTP 2.0 • Next version of HTTP • HTTP Multiplexing • Header Compression (HPACK)
Slide 77
Slide 77 text
SPDY/HTTP 2.0 • Next version of HTTP • HTTP Multiplexing • Header Compression (HPACK) • Prioritization
Slide 78
Slide 78 text
SPDY/HTTP 2.0 • Next version of HTTP • HTTP Multiplexing • Header Compression (HPACK) • Prioritization • Server Push
Slide 79
Slide 79 text
Recall Origin Hints…
Slide 80
Slide 80 text
Reducing Header Size vs. Header Compression
Slide 81
Slide 81 text
No content
Slide 82
Slide 82 text
No content
Slide 83
Slide 83 text
No More...
Slide 84
Slide 84 text
No More... • Domain Sharding
Slide 85
Slide 85 text
No More... • Domain Sharding • Spriting Images
Slide 86
Slide 86 text
No More... • Domain Sharding • Spriting Images • Concatenating Files
Slide 87
Slide 87 text
No More... • Domain Sharding • Spriting Images • Concatenating Files • DataURIs
Slide 88
Slide 88 text
No content
Slide 89
Slide 89 text
Slides, Links jkle.in/boswebperf
Slide 90
Slide 90 text
Let’s See it in Action
Slide 91
Slide 91 text
No content
Slide 92
Slide 92 text
No content
Slide 93
Slide 93 text
Before SPDY
Slide 94
Slide 94 text
After SPDY
Slide 95
Slide 95 text
Key Stats First Run SPDY/ HTTP 2.0 Difference Bytes 387KB 387KB - Start Render 1019ms 972ms -5% Speed Index 1278ms 1108ms -14%
Slide 96
Slide 96 text
istlsfastyet.com
Slide 97
Slide 97 text
No content
Slide 98
Slide 98 text
No content
Slide 99
Slide 99 text
Sites Using SPDY Today
Slide 100
Slide 100 text
Sites Using SPDY Today • Most (all?) Google Properties
Slide 101
Slide 101 text
Sites Using SPDY Today • Most (all?) Google Properties • Facebook
Slide 102
Slide 102 text
Sites Using SPDY Today • Most (all?) Google Properties • Facebook • Twitter
Slide 103
Slide 103 text
Sites Using SPDY Today • Most (all?) Google Properties • Facebook • Twitter • You?
Slide 104
Slide 104 text
Things You Learned • Origin Hints • Client Hints • WebP • SPDY/HTTP 2.0 • Pre-fetching
Slide 105
Slide 105 text
Things You Learned • Origin Hints • Client Hints • WebP • SPDY/HTTP 2.0 • Pre-fetching
Slide 106
Slide 106 text
NOT talking about pre-render
Slide 107
Slide 107 text
Pre-fetching • Fetch assets for next page • Speeds up navigation
Slide 108
Slide 108 text
WebPagetest Script ! logData 0 navigate https://velocity.jkle.in logData 1 navigate https://velocity.jkle.in/product.html
Slide 109
Slide 109 text
No content
Slide 110
Slide 110 text
Key Stats First Run Bytes 85KB Speed Index 479ms CSS Files 2 JS Files 6
Slide 111
Slide 111 text
! ! ! ! !
Slide 112
Slide 112 text
No content
Slide 113
Slide 113 text
Key Stats First Run Pre-fetching Difference Bytes 85KB 50KB -40% Speed Index 479ms 290ms -40% CSS Files 2 0 -100% JS Files 6 0 -100%
Slide 114
Slide 114 text
No content
Slide 115
Slide 115 text
Things You Learned • Origin Hints • Client Hints • WebP • SPDY/HTTP 2.0 • Pre-fetching
Slide 116
Slide 116 text
Browser Support
Slide 117
Slide 117 text
No content
Slide 118
Slide 118 text
These Are Still Good Options
Slide 119
Slide 119 text
Convincing CDNs Would Be HUGE
Slide 120
Slide 120 text
Implementation Challenges
Slide 121
Slide 121 text
Action Steps
Slide 122
Slide 122 text
Action Steps • Implement as much as you can
Slide 123
Slide 123 text
Action Steps • Implement as much as you can • Speak/blog about challenges
Slide 124
Slide 124 text
Action Steps • Implement as much as you can • Speak/blog about challenges • Ask your CDN for support
Slide 125
Slide 125 text
Action Steps • Implement as much as you can • Speak/blog about challenges • Ask your CDN for support • Report bugs
Slide 126
Slide 126 text
Let’s Upgrade The Web
Slide 127
Slide 127 text
Thanks!
Slide 128
Slide 128 text
@jonathanklein !
[email protected]
! www.etsy.com/careers Get in Touch