Slide 1

Slide 1 text

Third Party Woes Jason Grigsby @gri.gs @[email protected] https://www.linkedin.com/in/grigs/ https://cloudfour.com Photo by Pixabay: https://www.pexels.com/photo/sad-clown-doll-in-basket-208087/

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

Photo by Denitsa Kireva: https://www.pexels.com/photo/tortoise-in-grass-14594704/

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

Photo by Magda Ehlers: https://www.pexels.com/photo/closeup-photo-of-galapagos-tortoise-1201431/

Slide 10

Slide 10 text

Photo by zhang kaiyv: https://www.pexels.com/photo/time-lapse-photography-of-brown-concrete- building-842654/

Slide 11

Slide 11 text

Photo by Min An: https://www.pexels.com/photo/person-in-beige-top-on-mountain-cli ff -1134188/

Slide 12

Slide 12 text

Photo by Yan Krukau: https://www.pexels.com/photo/high-angle-photo-of- woman-looking-upset-in-front-of-silver-laptop-4458425/

Slide 13

Slide 13 text

THIRD-PARTY SCRIPTS

Slide 14

Slide 14 text

Photo by Daniel Reche: https://www.pexels.com/photo/eggs-in-tray-on-white-surface-1556707/

Slide 15

Slide 15 text

Images have always been di ff icult

Slide 16

Slide 16 text

Images are straightforward to solve

Slide 17

Slide 17 text

1. Identify the problem

Slide 18

Slide 18 text

https://cloudfour.com/thinks/stop-lazy- loading-product-and-hero-images/

Slide 19

Slide 19 text

1. Identify the problem 2. Talk about solutions 3. Teach any concepts or syntax 4. Implement the fix 5. Done

Slide 20

Slide 20 text

Third-party scripts are much more complex

Slide 21

Slide 21 text

Third-party scripts are JS files provided by websites or services other than the main site.

Slide 22

Slide 22 text

Businesses rely on third-parties for critical web site functionality

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

Do you need Bolt? Yes. It powers our entire checkout experience and abandoned cart functionality. Plus, we're approaching our holiday code freeze. We can't consider this until next year.

Slide 27

Slide 27 text

Do you need Bolt? We like it, but we're not wedded to it. What can we use to do the same thing that would be faster? Uh…

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

The web performance community tends to hate third-party scripts.

Slide 30

Slide 30 text

Photo by Hsing Wei: https://flickr.com/photos/hsing/6128750857/ Tag Managers

Slide 31

Slide 31 text

Photo by Andre Mouton: https://www.pexels.com/photo/closeup-photo-of-primate-1207875/

Slide 32

Slide 32 text

Despite our warnings, third-party scripts continue to plague websites

Slide 33

Slide 33 text

0% 25% 50% 75% 100% 2019 2020 2021 2022 94% 94.4% 94.1% 88.5% Percentage of mobile websites with at least 1 third-party resource Source: HTTP Archive Web Almanac, https://almanac.httparchive.org/

Slide 34

Slide 34 text

Source: HTTP Archive Web Almanac, https://almanac.httparchive.org/

Slide 35

Slide 35 text

45% of all requests Source: HTTP Archive Web Almanac, https://almanac.httparchive.org/

Slide 36

Slide 36 text

34% of all scripts Source: HTTP Archive Web Almanac, https://almanac.httparchive.org/

Slide 37

Slide 37 text

Photo by Pixabay: https://www.pexels.com/photo/black-white-and- brown-chess-board-game-139392/

Slide 38

Slide 38 text

Our goals for today: 1. How to analyze third-party script performance 2. What you can do with this information 3. Some newer options? 4. A call to action

Slide 39

Slide 39 text

Our goals for today: 1. How to analyze third-party script performance 2. What you can do with this information 3. Some newer options? 4. A call to action 1. How to analyze third-party script performance

Slide 40

Slide 40 text

1. How to analyze third-party script performance

Slide 41

Slide 41 text

Third-party Audit

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

Which third-parties are being used?

Slide 44

Slide 44 text

Request Map Generator https://requestmap.herokuapp.com/

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

requestmap.herokuapp.com /render/[WPT_ID]

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

Current Request Map Version

Slide 52

Slide 52 text

Slide 53

Slide 53 text

Current Request Map Version

Slide 54

Slide 54 text

Old Request Map Version

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

Current Request Map Version

Slide 57

Slide 57 text

Beta Request Map Version

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

Third Party Audit Spreadsheet Updated for use with Request Map Beta Domain Summary CSV https://bit.ly/3rdpartyaudit

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

What is the overall impact of third- parties on the website?

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

No content

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

No content

Slide 75

Slide 75 text

[A brief aside] What are we going to do about CatchPoint’s apparent neglect of WebPageTest?

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

No content

Slide 78

Slide 78 text

No content

Slide 79

Slide 79 text

No content

Slide 80

Slide 80 text

No content

Slide 81

Slide 81 text

No content

Slide 82

Slide 82 text

["'].*?(www\.example\.org| ads\.example\.org)[^"']*["']

Slide 83

Slide 83 text

No content

Slide 84

Slide 84 text

No content

Slide 85

Slide 85 text

Slide 86

Slide 86 text

No content

Slide 87

Slide 87 text

No content

Slide 88

Slide 88 text

Slide 89

Slide 89 text

No content

Slide 90

Slide 90 text

😀

Slide 91

Slide 91 text

No content

Slide 92

Slide 92 text

Which third-party scripts are causing the biggest problems?

Slide 93

Slide 93 text

No content

Slide 94

Slide 94 text

No content

Slide 95

Slide 95 text

["'].*?(www\.example\.org)[^"']*["']

Slide 96

Slide 96 text

No content

Slide 97

Slide 97 text

No content

Slide 98

Slide 98 text

No content

Slide 99

Slide 99 text

Our goals for today: 1. How to analyze third-party script performance 2. What you can do with this information 3. Some newer options? 4. A call to action 2. What you can do with this information

Slide 100

Slide 100 text

Photo by Andrea Piacquadio: https://www.pexels.com/ photo/a-man-in-red-shirt-covering-his-face-3760043/

Slide 101

Slide 101 text

Photo by Miguel Á. Padriñán: https://www.pexels.com/ photo/two-white-message-balloons-1111368/

Slide 102

Slide 102 text

Is it necessary? Is it duplicative of another script?

Slide 103

Slide 103 text

No content

Slide 104

Slide 104 text

Is it necessary? Is it duplicative of another script? Is it needed on every page?

Slide 105

Slide 105 text

Source: HTTP Archive Web Almanac, https://almanac.httparchive.org/

Slide 106

Slide 106 text

Is it necessary? Is it duplicative of another script? Is it needed on every page? Can the script provider improve performance? Can we self-host it? Can we execute the script on the server or edge? Can we use defer or async for loading?

Slide 107

Slide 107 text

Source: HTTP Archive Web Almanac, https://almanac.httparchive.org/

Slide 108

Slide 108 text

Is it necessary? Is it duplicative of another script? Is it needed on every page? Can the script provider improve performance? Can we self-host it? Can we execute the script on the server or edge? Can we use defer or async for loading? Can we use facade to only load when necessary?

Slide 109

Slide 109 text

No content

Slide 110

Slide 110 text

Source: HTTP Archive Web Almanac, https://almanac.httparchive.org/

Slide 111

Slide 111 text

Is it necessary? Is it duplicative of another script? Is it needed on every page? Can the script provider improve performance? Can we self-host it? Can we execute the script on the server or edge? Can we use defer or async for loading? Can we use facade to only load when necessary?

Slide 112

Slide 112 text

Photo by Gratisography: https://www.pexels.com/photo/man-person-street-shoes-2882/

Slide 113

Slide 113 text

No content

Slide 114

Slide 114 text

“In the last 10 years, there has been an increasing pressure for brands that already had relationships with bigger retailers like Home Depot and Costco to start syndicating additional review content to their sites. And since most of those bigger retailers already had relationships with BazaarVoice, there was a little to no choice for brands.”

Slide 115

Slide 115 text

Our goals for today: 1. How to analyze third-party script performance 2. What you can do with this information 3. Some newer options? 4. A call to action

Slide 116

Slide 116 text

No content

Slide 117

Slide 117 text

No content

Slide 118

Slide 118 text

No content

Slide 119

Slide 119 text

Photo by Pixabay: https://www.pexels.com/photo/blue-tape- measuring-on-clear-glass-square-weighing-scale-53404/

Slide 120

Slide 120 text

Photo by Markus Winkler: https://www.pexels.com/photo/ozempic-18512879/

Slide 121

Slide 121 text

Photo by cottonbro studio: https://www.pexels.com/photo/woman-in-white-long- sleeve-shirt-lying-on-bed-4690701/

Slide 122

Slide 122 text

No content

Slide 123

Slide 123 text

No content

Slide 124

Slide 124 text

B A

Slide 125

Slide 125 text

No content

Slide 126

Slide 126 text

No content

Slide 127

Slide 127 text

Running scripts on the edge would also increase privacy and reduce impact of content blockers.

Slide 128

Slide 128 text

No content

Slide 129

Slide 129 text

No content

Slide 130

Slide 130 text

No content

Slide 131

Slide 131 text

Some other options to consider

Slide 132

Slide 132 text

No content

Slide 133

Slide 133 text

No content

Slide 134

Slide 134 text

FID INP?

Slide 135

Slide 135 text

No content

Slide 136

Slide 136 text

No content

Slide 137

Slide 137 text

No content

Slide 138

Slide 138 text

There are no miracle diets for web performance

Slide 139

Slide 139 text

Most website owners have no idea that adding a third-party script will impact their site performance, their customer experience, and their revenue.

Slide 140

Slide 140 text

Photo by Andres Ayrton: https://www.pexels.com/photo/ woman-showing-apple-and-bitten-doughnut-6551415/

Slide 141

Slide 141 text

No content

Slide 142

Slide 142 text

No content

Slide 143

Slide 143 text

No content

Slide 144

Slide 144 text

No content

Slide 145

Slide 145 text

Most of the time, you don’t know the performance impact until a ft er…

Slide 146

Slide 146 text

You’ve signed a contract…

Slide 147

Slide 147 text

Spent time and money on implementation…

Slide 148

Slide 148 text

If you’re not monitoring performance, you may not even know a ft er it goes live…

Slide 149

Slide 149 text

By the time you figure it out, you may be too reliant on the third-party to change.

Slide 150

Slide 150 text

And that’s assuming you had a choice in the first place.

Slide 151

Slide 151 text

I have a little confession to make…

Slide 152

Slide 152 text

No content

Slide 153

Slide 153 text

What’s this?

Slide 154

Slide 154 text

No content

Slide 155

Slide 155 text

No content

Slide 156

Slide 156 text

A new report?

Slide 157

Slide 157 text

No content

Slide 158

Slide 158 text

No content

Slide 159

Slide 159 text

No content

Slide 160

Slide 160 text

No content

Slide 161

Slide 161 text

No content

Slide 162

Slide 162 text

Our goals for today: 1. How to analyze third-party script performance 2. What you can do with this information 3. Some newer options? 4. A call to action

Slide 163

Slide 163 text

No content

Slide 164

Slide 164 text

Photo by Je ff Stapleton: https:// www.pexels.com/photo/hands-holding- banner-with-question-4220084/

Slide 165

Slide 165 text

Encourage third-parties to prioritize performance

Slide 166

Slide 166 text

Praise third-parties that are fast (and shame the ones that aren't?)

Slide 167

Slide 167 text

How can browsers help?

Slide 168

Slide 168 text

No content

Slide 169

Slide 169 text

Require timing-allow-origin headers for any third-party scripts

Slide 170

Slide 170 text

Make it easier for site owners to compare the performance of third-party scripts

Slide 171

Slide 171 text

Coordinate on solutions to get more third-parties o ff the main thread or onto the server and the edge

Slide 172

Slide 172 text

Share tips on how to make third-parties more performant

Slide 173

Slide 173 text

No content

Slide 174

Slide 174 text

No content

Slide 175

Slide 175 text

No content

Slide 176

Slide 176 text

Photo by Pixabay: https://www.pexels.com/ photo/question-mark-on-chalk-board-356079/

Slide 177

Slide 177 text

No content

Slide 178

Slide 178 text

Photo by Pixabay: https://www.pexels.com/ photo/question-mark-on-chalk-board-356079/

Slide 179

Slide 179 text

Thank You!

Slide 180

Slide 180 text

Thank You! @gri.gs @[email protected] https://www.linkedin.com/in/grigs/ https://cloudfour.com

Slide 181

Slide 181 text

Thank You! @gri.gs @[email protected] https://www.linkedin.com/in/grigs/ https://cloudfour.com

Slide 182

Slide 182 text

No content