your hero images need you: save the day with http2 image loading / tobias baldauf (akamai...

75
Your Hero Images Need You! Save the Day with HTTP2 Image Loading 1 / 75 — [email protected]

Upload: ontico

Post on 06-Jan-2017

82 views

Category:

Engineering


5 download

TRANSCRIPT

Page 1: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Your Hero Images

Need You!Save the Day with

HTTP2 Image Loading

1 / 75 — [email protected]

Page 3: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

3 / 75 — [email protected]

Page 4: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

4 / 75 — [email protected]

Page 5: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Show Images

FasterThan Ever

5 / 75 — [email protected]

Page 6: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Render Meaningful Content With

25%Image Data Sent

6 / 75 — [email protected]

Page 7: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

7 / 75 — [email protected]

Page 8: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

ref. http://httparchive.org/trends.php?s=All&minlabel=Mar+15+2014&maxlabel=Mar+15+2016#bytesImg&reqImg 8 / 75 — [email protected]

Page 9: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

9 / 75 — [email protected]

Page 10: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

What Can We Do?

10 / 75 — [email protected]

Page 11: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Get compressin'!

11 / 75 — [email protected]

Page 12: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Compress

Aggressively

12 / 75 — [email protected]

Page 13: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Ship Right Format

13 / 75 — [email protected]

Page 14: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Automate Quality

14 / 75 — [email protected]

Page 15: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Still a Heavy Load :(

15 / 75 — [email protected]

Page 16: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

We need a new form of

Aggressive Delivery!

16 / 75 — [email protected]

Page 17: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Enter HTTP2

17 / 75 — [email protected]

Page 18: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Thanks to Clay Smith (https://twitter.com/smithclay) for this beauty! 18 / 75 — [email protected]

Page 19: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

kudos to my team mate Lukasz Czerpak, @lukaszczerpak 19 / 75 — [email protected]

Page 20: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

kudos to my team mate Lukasz Czerpak, @lukaszczerpak 20 / 75 — [email protected]

Page 21: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

21 / 75 — [email protected]

Page 22: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

H2 Constraints

22 / 75 — [email protected]

Page 23: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Ingredient #1

H2 Multiplexing

23 / 75 — [email protected]

Page 24: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Progressive JPEGs

24 / 75 — [email protected]

Page 25: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Sequential JPEG Progressive JPEG

Images taken from http://www.pixelstech.net/article/1374757887-Use-progressive-JPEG-to-improve-user-experience 25 / 75 — [email protected]

Page 26: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Scan Layers

26 / 75 — [email protected]

Page 27: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Default Scan Layers

Thanks to Frédéric Kayser for creating 'jsk': http://encode.ru/threads/1800-JSK-JPEG-Scan-Killer-progressive-JPEG-explained-in-slowmo 27 / 75 — [email protected]

Page 28: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Org Cb

Y Cr28 / 75 — [email protected]

Page 29: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

29 / 75 — [email protected]

Page 30: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

30 / 75 — [email protected]

Page 31: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

31 / 75 — [email protected]

Page 32: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Can We Go ...

Even Faster?

32 / 75 — [email protected]

Page 33: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

33 / 75 — [email protected]

Page 34: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

34 / 75 — [email protected]

Page 35: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

1

35 / 75 — [email protected]

Page 36: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

2

36 / 75 — [email protected]

Page 37: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

3

37 / 75 — [email protected]

Page 38: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

4

38 / 75 — [email protected]

Page 39: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

5

39 / 75 — [email protected]

Page 40: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Ingredient #2

Progressive JPEGs

40 / 75 — [email protected]

Page 41: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

How

FASTIs this Mixture?

41 / 75 — [email protected]

Page 42: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

What defines

FAST?

42 / 75 — [email protected]

Page 43: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Speed Index

43 / 75 — [email protected]

Page 44: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

ref. Pat Meenan, http://www.slideshare.net/patrickmeenan/measuring-the-visual-experience-of-website-performance 44 / 75 — [email protected]

Page 45: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

ref. Pat Meenan, http://www.slideshare.net/patrickmeenan/measuring-the-visual-experience-of-website-performance 45 / 75 — [email protected]

Page 46: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

ref. Pat Meenan, http://www.slideshare.net/patrickmeenan/measuring-the-visual-experience-of-website-performance 46 / 75 — [email protected]

Page 47: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Site A displays

7.4x fasterthan Site B

more info at https://sites.google.com/a/webpagetest.org/docs/using-webpagetest/metrics/speed-index 47 / 75 — [email protected]

Page 48: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Baseline Sequentialvs.

Progressive JPEGson HTTP1.1

48 / 75 — [email protected]

Page 49: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

49 / 75 — [email protected]

Page 50: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

50 / 75 — [email protected]

Page 51: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

51 / 75 — [email protected]

Page 52: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Progressive JPEGsvs.

Optimized pJPEGson HTTP1.1

52 / 75 — [email protected]

Page 53: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

53 / 75 — [email protected]

Page 54: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

54 / 75 — [email protected]

Page 55: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

55 / 75 — [email protected]

Page 56: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Baseline Sequentialvs.

Progressive JPEGs

on HTTP2

56 / 75 — [email protected]

Page 57: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

57 / 75 — [email protected]

Page 58: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

58 / 75 — [email protected]

Page 59: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

59 / 75 — [email protected]

Page 60: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Progressive JPEGsvs.

Optimized Progressive JPEGs

on HTTP2

60 / 75 — [email protected]

Page 61: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

61 / 75 — [email protected]

Page 62: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

62 / 75 — [email protected]

Page 63: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Optimized pJPEGs on HTTP2 yield a

6% Speed Index Gain

63 / 75 — [email protected]

Page 64: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

What about

HTTP2 Server Push?

64 / 75 — [email protected]

Page 65: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

// Prioritize a progressive JPEG's metadata and scan levels// with minimal 'calm' => maximum priority<img src="img/jpeg_opJPEG/tba/00001.jpg?bil=0!0">

// Create a cumulative cascade of 'calm'// for a progressive JPEG's metadata and scan levels// Each new value is added to the sum, lowering priority per scan layer <img src="img/jpeg_opJPEG/tba/00001.jpg?bil=0!100,50,20">

65 / 75 — [email protected]

Page 66: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

66 / 75 — [email protected]

Page 67: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

67 / 75 — [email protected]

Page 68: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

68 / 75 — [email protected]

Page 69: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

69 / 75 — [email protected]

Page 70: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

70 / 75 — [email protected]

Page 71: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Progressive Images+

HTTP2=

Win

71 / 75 — [email protected]

Page 72: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

Scan Layer Manipulation=

Better Speed Index

72 / 75 — [email protected]

Page 73: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

HTTP2 Server Push+

Optimized Scan Layers=

Awesomesauce

73 / 75 — [email protected]

Page 74: Your hero images need you: Save the day with HTTP2 image loading / Tobias Baldauf (Akamai Technologies)

THANKS!

74 / 75 — [email protected]