Slide 1

Slide 1 text

Performance Wake-up

Slide 2

Slide 2 text

https://medium.com/@addyosmani/shopping-for-speed-on-ebay-com-6229711d7573

Slide 3

Slide 3 text

Would you be willing to slow your site down 0.1 second ?

Slide 4

Slide 4 text

Uncomfortable, isn’t it?

Slide 5

Slide 5 text

"A 2012 detailed study at Bing (Kohavi et al.2013) showed that every 100 ms speedup improves revenue by 0.6%."* *Kohavi, Ron; Tang, Diane; Xu, Ya. Trustworthy Online Controlled Experiments: A Practical Guide to A/B Testing (p. 82).

Slide 6

Slide 6 text

Performance optimization is just… optimization.

Slide 7

Slide 7 text

WPO Stats, wpostats.com

Slide 8

Slide 8 text

You’re competing for subconscious attention

Slide 9

Slide 9 text

So, how are we doing?

Slide 10

Slide 10 text

Bol.com

Slide 11

Slide 11 text

gtmetrix.com 9,2MB network payload

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

Are CWV a “ranking factor”?

Slide 14

Slide 14 text

https://www.linkedin.com/feed/update/urn:li:activity:71736 81294403358721/

Slide 15

Slide 15 text

Johan his excellent comment

Slide 16

Slide 16 text

Is this just academic?

Slide 17

Slide 17 text

1% of global electricity usage, and growing

Slide 18

Slide 18 text

https://twitter.com/JohnMu/status/1768187387698364518

Slide 19

Slide 19 text

Most websites are slow rotten. Why?

Slide 20

Slide 20 text

developers and their decisions

Slide 21

Slide 21 text

servers and systems

Slide 22

Slide 22 text

scripts and styles

Slide 23

Slide 23 text

ads and analytics

Slide 24

Slide 24 text

measurement and monitoring

Slide 25

Slide 25 text

tools and testing

Slide 26

Slide 26 text

Are you measuring your measuring?

Slide 27

Slide 27 text

https://gtmetrix.com/reports/yoast.com/AVp6IGIT/

Slide 28

Slide 28 text

Chrome Developer Tools; “Network” tab

Slide 29

Slide 29 text

~560kb in ~0.4 seconds

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

GTM > GA + HotJar + GO

Slide 32

Slide 32 text

GTM > GA + HotJar + GO = ~220kb

Slide 33

Slide 33 text

GTM > GA + HotJar + GO = ~220kb = 40% of page weight

Slide 34

Slide 34 text

GTM > GA + HotJar + GO = ~220kb = 40% of page weight = 0.1 second

Slide 35

Slide 35 text

What’s the real world impact?

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

2 trees

Slide 38

Slide 38 text

!? Lots of trees Yikes.

Slide 39

Slide 39 text

This isn’t everybody though, surely?

Slide 40

Slide 40 text

So everybody’s favo urite hotel site is prob ably nailing it, right?

Slide 41

Slide 41 text

Mountains of JS

Slide 42

Slide 42 text

Mountains of JS = ~1.4mb (of ~3mb page)

Slide 43

Slide 43 text

Mountains of JS = ~1.4mb (of ~3mb page) = ~+1.5 seconds

Slide 44

Slide 44 text

Mountains of JS = ~1.4mb (of ~3mb page) = ~+1.5 seconds = $$$

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No JS JS

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

How’s your site? (Spoiler: It’s probably worse)

Slide 49

Slide 49 text

You have to optimize your optimizing.

Slide 50

Slide 50 text

“But this stuff is hard / new / alien” How do I do it?

Slide 51

Slide 51 text

web.dev/vitals/ May 2020

Slide 52

Slide 52 text

web.dev/vitals/ “INP” Interaction to Next Paint (12 March, 2024)

Slide 53

Slide 53 text

INP example

Slide 54

Slide 54 text

web.dev/chrome-ux-report-data-studio-dashboard/

Slide 55

Slide 55 text

CWV fixes "It's hard to quantify"

Slide 56

Slide 56 text

web.dev/optimize-vitals-lighthouse/ Specific recommendations!

Slide 57

Slide 57 text

web.dev/patterns/web-vitals-patterns/ Patterns!

Slide 58

Slide 58 text

developers.google.com/web/fundamentals/design-and-ux/responsive/images Advanced theory!

Slide 59

Slide 59 text

web.dev/vitals-tools-workflow/ Workflows and processes!

Slide 60

Slide 60 text

So, aren’t these are all solved problems?

Slide 61

Slide 61 text

What happens in a real world scenario?

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

Maybe the wrong people (or nobody) own this?

Slide 64

Slide 64 text

Start with a business case

Slide 65

Slide 65 text

Site performance is site-wide (and therefore doesn’t get prioritized)

Slide 66

Slide 66 text

Environment (greener) Cost Saving Inclusivity Profitability Agility / Velocity Align with company values / goals

Slide 67

Slide 67 text

e.g., CO2 impact

Slide 68

Slide 68 text

CO2 impact x pageviews = number of trees to plant to offset 28,000 trees!

Slide 69

Slide 69 text

or cost saving

Slide 70

Slide 70 text

Page transfer size x number of requests x $

Slide 71

Slide 71 text

and code quality…

Slide 72

Slide 72 text

Fewer errors Easier a/b testing faster development (velocity) Easier to scale development resources Optimised code leads to:

Slide 73

Slide 73 text

And don’t forget about device tax…

Slide 74

Slide 74 text

No content

Slide 75

Slide 75 text

Inclusivity = Device tax or Connection tax

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

12 million EUR / per 0.5 second

Slide 78

Slide 78 text

Manage (control) stakeholder expectations You can be “creative” with forecasts…

Slide 79

Slide 79 text

Got a dedicated, embedded team “Quality” isn’t a one-off process!

Slide 80

Slide 80 text

CONGRATULATIONS We’ve made your roadmap for 2024.

Slide 81

Slide 81 text

So, where do I start?

Slide 82

Slide 82 text

Four tactical focus areas Code & nerdy stuff ng up!

Slide 83

Slide 83 text

1. Caching

Slide 84

Slide 84 text

What’s the fastest way to load something?

Slide 85

Slide 85 text

Cache this “forever”

Slide 86

Slide 86 text

(but not if I update it)

Slide 87

Slide 87 text

2. Images

Slide 88

Slide 88 text

What format? AVIF > WEBP > PNG/JPG

Slide 89

Slide 89 text

Squoosh.app

Slide 90

Slide 90 text

3. Fonts

Slide 91

Slide 91 text

Third-party resources = slow

Slide 92

Slide 92 text

@font-face { font-family:'Rubik'; src: url('/fonts/rubik.woff2’); } self-hosting = faster woff2 = faster fetchpriority = new

Slide 93

Slide 93 text

@font-face { font-family:'Rubik'; font-style:normal; font-weight:400; font-display:swap; unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; src:local('Rubik'), local('Rubik-Regular'), url('/fonts/rubik-latin-400.woff2?ver=1606167081') format('woff2'); } @font-face { font-family:'Rubik'; font-style:normal; font-weight:700; font-display:swap; unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; src:local('Rubik Bold'), local('Rubik-Bold'), url('/fonts/rubik-latin-700.woff2?ver=1606167081') format('woff2'); } Manage weight, style, display, and glyphs

Slide 94

Slide 94 text

4. JavaScript & CSS

Slide 95

Slide 95 text

Slide 96

Slide 96 text

Slide 97

Slide 97 text

Slide 98

Slide 98 text

Honestly… Just use Lighthouse, then go read web.dev

Slide 99

Slide 99 text

CONGRATULATIONS You’re at step one. Your site is no longer on fire

Slide 100

Slide 100 text

Tools

Slide 101

Slide 101 text

pagespeed.web.dev

Slide 102

Slide 102 text

websitecarbon.com

Slide 103

Slide 103 text

cloudflare.com

Slide 104

Slide 104 text

instant.page

Slide 105

Slide 105 text

Squoosh.app

Slide 106

Slide 106 text

caniuse.com

Slide 107

Slide 107 text

partytown.builder.io

Slide 108

Slide 108 text

sitebulb.com

Slide 109

Slide 109 text

No content

Slide 110

Slide 110 text

No content