Third-Parties and the Fate of the Web

A presentation at An Event Apart Denver in October 2019 in Denver, CO, USA by Trent Walton

Slide 1

Slide 1

Third-Parties and the fate of the web

Slide 2

Slide 2

Hi! para velin c.co m

Slide 3

Slide 3

Hi!

Slide 4

Slide 4

Hi!

Slide 5

Slide 5

What are thirdparties?

Slide 6

Slide 6

Third-Party Any request made by a webpage coming from an external URL

Slide 7

Slide 7

Third-Party Scripts and Services http://trentwalton.com

Slide 8

Slide 8

Third-Party Scripts and Services http://trentwalton.com Network Requests Panel https://trentwalton.com/style.css https://trentwalton.com/mediocrejavascript.js

Slide 9

Slide 9

Third-Party Scripts and Services http://trentwalton.com Network Requests Panel https://trentwalton.com/style.css https://trentwalton.com/mediocrejavascript.js https://p.typekit.net/p.css

Slide 10

Slide 10

Third-Party Scripts and Services http://trentwalton.com

Slide 11

Slide 11

Third-Party Any request made by a webpage coming from an external URL

Slide 12

Slide 12

Third-Party Any request made by a webpage coming from an external URL Any resource included with a webpage that the site owner doesn’t explicitly control

Slide 13

Slide 13

Third-Party Scripts and Services http://trentwalton.com Network Requests Panel https://trentwalton.com/style.css https://trentwalton.com/mediocrejavascript.js

Slide 14

Slide 14

Third-Party Scripts and Services http://trentwalton.com Network Requests Panel https://trentwalton.com/style.css https://trentwalton.com/mediocrejavascript.js https://evilcorp.com/ssssshhhhh.js

Slide 15

Slide 15

http://trentwalton.com Network Requests Panel https://trentwalton.com/style.css https://trentwalton.com/mediocrejavascript.js https://evilcorp.com/ssssshhhhh.js

Slide 16

Slide 16

Third-Party Uses Advertising CDN Ad networks, Ad content Cloudflare, AWS, etc. AB Testing Customer Interaction Maxymiser, Optimizely, etc. Live chat, feedback widgets Analytics Comments Site traffic, trackers, etc. Disqus, etc. Social Media Essential Embeds, sign up, share buttons Tag managers, fonts, etc.

Slide 17

Slide 17

Third-Party Benefits Data Functionality Analytics + AB Testing Comments, Chat, Tag Managers, Iframes Income Targeting / Marketing Ads, Analytics, Trackers Tracking, targeted marketing pages, etc. Content CDNs for Fonts, Images, Videos, etc.

Slide 18

Slide 18

Third-Party Concerns User Experience Poor Performance (Load Time + Processor Lag), Inconsistent UI Privacy Customer/User Trust, Organizational Reputation, Data protection

Slide 19

Slide 19

Third-Parties & Me

Slide 20

Slide 20

Why do I care about third-parties?

Slide 21

Slide 21

Slide 22

Slide 22

Image Comps

Slide 23

Slide 23

Frontend Image Comps

Slide 24

Slide 24

Performance Frontend Image Comps

Slide 25

Slide 25

A11Y Performance Frontend Image Comps

Slide 26

Slide 26

RWD A11Y Performance Frontend Image Comps

Slide 27

Slide 27

Design Systems RWD A11Y Performance Frontend Image Comps

Slide 28

Slide 28

Command Line Design Systems RWD A11Y Performance Frontend Image Comps

Slide 29

Slide 29

Third-Parties Command Line Design Systems RWD A11Y Performance Frontend Image Comps

Slide 30

Slide 30

Why?

Slide 31

Slide 31

Impact

Slide 32

Slide 32

Prototypes!

Slide 33

Slide 33

Welcome 1 2 Next 3

Slide 34

Slide 34

Welcome 1 2 3

<ul role=”tablist”> <li> <a href=”#first-tab” role=”tab” ariaselected=”true” aria-controls=”first-tab”>

Slide 35

Slide 35

Welcome 1 2 3

Slide 36

Slide 36

WOFF JPG CSS Shrink-O-Matic CSS PNG JS JPG WOFF CSS JPG W

Slide 37

Slide 37

Buttons Fonts Patterns Footer Forms Primary Secondary Grid Header Navigation Tables Buttons Use only one primary button per component.

Slide 38

Slide 38

Slide 39

Slide 39

Integration!

Slide 40

Slide 40

CMS

Slide 41

Slide 41

Analytics CMS Ad Network

Slide 42

Slide 42

Analytics CMS Ad Network AB Testing E-Com Comments

Slide 43

Slide 43

Analytics CMS Ad Network AB Testing Trackers E-Commerce Comments Bus Social Sign

Slide 44

Slide 44

JPG CSS PNG WOF F JS Ad Netw ork Analy AB Testi ng tics Socia l

Slide 45

Slide 45

Analytics v2.0.1 Ad Network v2.0.2 AB Testing v2.0.3

Slide 46

Slide 46

Delivering a performant, accessible, responsive, scalable website isn’t enough: I also need to consider the impact of third-party scripts.

Slide 47

Slide 47

twitter.com/csswizardry/status/915886339391918083

Slide 48

Slide 48

Slide 49

Slide 49

Why? How?

Slide 50

Slide 50

What can I do?

Slide 51

Slide 51

Understanding Third-Parties

Slide 52

Slide 52

Categories & Types Know Industry Averages Analyze & Itemize

Slide 53

Slide 53

Categories Advertising Analytics Comments Social Media

Slide 54

Slide 54

Categories Advertising CDN Ad networks, Ad content Cloudflare, AWS, etc. AB Testing Customer Interaction Maxymiser, Optimizely, etc. Live chat, feedback widgets Analytics Comments Site traffic, trackers, etc. Disqus, etc. Social Media Essential Embeds, sign up, share buttons Tag managers, fonts, etc.

Slide 55

Slide 55

Ghostery ghostery.com

Slide 56

Slide 56

Categories

Slide 57

Slide 57

Categories

Slide 58

Slide 58

Categories

Slide 59

Slide 59

Categories Advertising CDN Ad networks, Ad content Cloudflare, AWS, etc. AB Testing Customer Interaction Maxymiser, Optimizely, etc. Live chat, feedback widgets Analytics Comments Site traffic, trackers, etc. Disqus, etc. Social Media Essential Embeds, sign up, share buttons Tag managers, fonts, etc.

Slide 60

Slide 60

Know Industry Averages

Slide 61

Slide 61

Alexa Top 50 US Sites

Slide 62

Slide 62

Alexa Top 50 US Sites 9 4

Slide 63

Slide 63

Alexa Top 50 US Sites 9 446

Slide 64

Slide 64

Slide 65

Slide 65

Third-Party Requests across top 46 US sites

Slide 66

Slide 66

213 Third-Party Domain URLs * domains, not requests

Slide 67

Slide 67

22 Average Per Site

Slide 68

Slide 68

Third-Party Prevalence https://trentwalton.com/tag/Third-Party/ Third-party domain

of top 46 sites

% of top 46 sites doubleclick.net 38 82.6% facebook.com 32 69.6% google-analytics.com 27 58.7% googlesyndication.com 25 54.3% googleadservices.com 24 52.2% cloudfront.net 20 43.5% googleapis.com 20 43.5% scorecardresearch.com 18 39.1% 2mdn.net 17 37.0% adnxs.com 17 37.0% fastly.net 17 37.0% akamaihd.net 16 34.8%

Slide 69

Slide 69

What’s a Demdex? better.fyi/trackers

Slide 70

Slide 70

What’s a Demdex? better.fyi/trackers

Slide 71

Slide 71

Volume Per Site Alexa Site Third-Party Domains nytimes.com 64 washingtonpost.com 63 Metropcs.mobi 59 cnn.com 57 ebay.com 49 msn.com 45 microsoft.com 43 wikia.com 42 salesforce.com 40 bestbuy.com 38 imdb.com 37 twitch.tv 37 espn.com 36 wordpress.com 32

Slide 72

Slide 72

Which sites had the most? News Shopping nytimes.com washingtonpost.com cnn.com msn.com espn.com ebay.com bestbuy.com target.com amazon.com walmart.com

Slide 73

Slide 73

News & Shopping Ads Analytics Comments Social CDN Ratings Feedback

Slide 74

Slide 74

Further Reading trentwalton.com/notes/2018/01/23/third-party-script-prevalence-on-alexa-top-50.html

Slide 75

Slide 75

Analyze & Itemize

Slide 76

Slide 76

Pop quiz, hotshot… You want an itemized list of all third-parties on a web page. How do you get it!?

Slide 77

Slide 77

View Source? view-source:http://trentwalton.com <html lang=“en-us”> <head> <link href=”https://use.typekit.net/iwu3yfx.css” rel=”stylesheet”> <script src=”//cdnjs.cloudflare.com/jquery.min.js”></script> </head> <body>

Slide 78

Slide 78

View Source? view-source:http://trentwalton.com <html lang=“en-us”> <head> <link rel=”shortcut icon” href=”https://static.nytimes.com/favicon.ico” /> <link rel=”apple-touch-icon-precomposed” sizes=”144×144” href=”https://static.nytimes.com/images/icons/ios-ipad-144x144.png” /> <link rel=”apple-touch-icon-precomposed” sizes=”114×114” href=”https://static.nytimes.com/images/icons/ios-iphone-114x144.png” /> <link rel=”apple-touch-icon-precomposed” href=”https://static.nytimes.com/images/icons/ios-default-homescreen-57x57.png” /> <meta name=”sourceApp” content=”nyt-v5” /> <meta id=”applicationName” name=”applicationName” content=”homepage” /> <meta id=”foundation-build-id” name=”foundation-build-id” content=”” /> <link rel=”canonical” href=”https://www.nytimes.com” /> <link rel=”alternate” type=”application/rss+xml” title=”RSS” href=”http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml” /> <link rel=”alternate” media=”only screen and (max-width: 640px)” href=”http://mobile.nytimes.com” /> <link rel=”alternate” media=”handheld” href=”http://mobile.nytimes.com” /> <meta name=”robots” content=”noarchive,noodp,noydir” /> <meta name=”description” content=”The New York Times: Find breaking news, multimedia, reviews & opinion on Washington, business, sports, movies, travel, books, jobs, education, real estate, cars & more at nytimes.com.” /> <meta name=”CG” content=”Homepage” /> <meta name=”SCG” content=”” />

Slide 79

Slide 79

Ghostery?

Slide 80

Slide 80

Visualized Results requestmap.webperf.tools By Simon Hearne

Slide 81

Slide 81

requestmap.webperf.tools Request Map for trentwalton.com

Slide 82

Slide 82

requestmap.webperf.tools Request Map for amazon.com

Slide 83

Slide 83

Request Map CSV Export Request Map for amazon.com

Slide 84

Slide 84

Built In Measuring Chrome Lighthouse https://twitter.com/addyosmani/status/1156451928349372417?lang=en

Slide 85

Slide 85

Slide 86

Slide 86

Slide 87

Slide 87

Slide 88

Slide 88

Summarized Results BuiltWith.com

Slide 89

Slide 89

Slide 90

Slide 90

Slide 91

Slide 91

Slide 92

Slide 92

Slide 93

Slide 93

More Work, More Options HTTP Archive format HAR website.har (JSON)

Slide 94

Slide 94

Save as HAR http://trentwalton.com Copy Network Requests Panel https://trentwalton.com/style.css Save All As Har Open in New Tab https://trentwalton.com/mediocrejavascript.js Start Performance Analysis

Slide 95

Slide 95

Now What? HAR website.har (JSON)

Slide 96

Slide 96

har.tech

Slide 97

Slide 97

charlesproxy.com

Slide 98

Slide 98

Slide 99

Slide 99

Slide 100

Slide 100

Third-Parties & Users

Slide 101

Slide 101

User-Experience Impact Privacy Impact What Browsers Do

Slide 102

Slide 102

User-Experience

Slide 103

Slide 103

We feel third-party impact anytime we browse the web.

Slide 104

Slide 104

But I have one story…

Slide 105

Slide 105

31 requests, 6.7MB

Slide 106

Slide 106

348 requests, 14.7MB

Slide 107

Slide 107

Food Network Request Map

Slide 108

Slide 108

Two Extremes…

Slide 109

Slide 109

Slide 110

Slide 110

Does your site depend on third-parties to function?

Slide 111

Slide 111

If your site breaks when I visit it with a content blocker, whose problem is it?

Slide 112

Slide 112

25–40% US Internet users block ads https://www.businessinsider.com/30-of-all-internet-users-will-ad-block-by-2018-2017-3 https://marketingland.com/survey-shows-us-ad-blocking-usage-40-percent-laptops-15-percent-mobile-216324

Slide 113

Slide 113

Supporting contentblocked browsers?

Slide 114

Slide 114

Privacy

Slide 115

Slide 115

This site uses cookies! Got it

Slide 116

Slide 116

https://twitter.com/jasonfried/status/1003979608042164230

Slide 117

Slide 117

Remarketing! Spatula Buy Now

Slide 118

Slide 118

Remarketing! Thank you for your purchase

Slide 119

Slide 119

Weather App advertisement Spatula! Shop Now

Slide 120

Slide 120

Browsing History amazon.com/panini cheesysandwiches.com facebook.com/political-thing facebook.com/timeline twitter.com/moment

Slide 121

Slide 121

It’s up to us! Don’t wait to be told!

Slide 122

Slide 122

Privacy Third-Parties Command Line Design Systems RWD A11Y Performance Frontend Image

Slide 123

Slide 123

What Browsers Do

Slide 124

Slide 124

Chrome

Slide 125

Slide 125

Chrome

Slide 126

Slide 126

Chrome

Slide 127

Slide 127

Chrome

Slide 128

Slide 128

Safari

Slide 129

Slide 129

Safari Safari 12.1—You can stop third-party content providers from tracking you across websites to advertise products and services. y b d e k c Che lt u a f de

Slide 130

Slide 130

Safari

Slide 131

Slide 131

Safari

Slide 132

Slide 132

Safari

Slide 133

Slide 133

Safari

Slide 134

Slide 134

Edge

Slide 135

Slide 135

Slide 136

Slide 136

with balanced activated by default…

Slide 137

Slide 137

Slide 138

Slide 138

Slide 139

Slide 139

Firefox

Slide 140

Slide 140

Firefox

Slide 141

Slide 141

Firefox

Slide 142

Slide 142

Firefox

Slide 143

Slide 143

Opera

Slide 144

Slide 144

Opera

Slide 145

Slide 145

Opera

Slide 146

Slide 146

Ghostery

Slide 147

Slide 147

The Conundrum

Slide 148

Slide 148

Are all thirdparties bad?

Slide 149

Slide 149

What about sites I control?

Slide 150

Slide 150

http://trentwalton.com Network Requests Panel https://trentwalton.com/style.css https://trentwalton.com/mediocrejavascript.js https://p.typekit.net/p.css

Slide 151

Slide 151

What about sites I don’t control?

Slide 152

Slide 152

“I’ll try anything once!”

Slide 153

Slide 153

Slide 154

Slide 154

Slide 155

Slide 155

Slide 156

Slide 156

Slide 157

Slide 157

Slide 158

Slide 158

Slide 159

Slide 159

“I’ll try anything once!”

Slide 160

Slide 160

Slide 161

Slide 161

Slide 162

Slide 162

Slide 163

Slide 163

Slide 164

Slide 164

Slide 165

Slide 165

Slide 166

Slide 166

Taking Responsibility for Third-Parties

Slide 167

Slide 167

Have standards! Stuff you can do right now

Slide 168

Slide 168

Define Standards 1 Determine value to the business/website 2 Avoid redundant scripts and services 3 Fit within established performance budget 4 Comply with organizational privacy policy

Slide 169

Slide 169

Document Standards Third-Party Standards Styles Components Templates Prototypes Accessibility Third-Parties Our goal is to document and regularly evaluate the value of third-party inclusions, optimizing benefits while minimizing the UX/Performance impact. Inventory AB Testing - Optimizely 300kb WebPage Test 73kb WebPage Test Comments - Disqus 120kb WebPage Test Ads - Doubleclick 100kb WebPage Test 80kb WebPage Test Analytics - Chartbeat Ads - Adnxs

Slide 170

Slide 170

Account For Third-Parties During Prototyping Analytics Ad Network AB Testing

Slide 171

Slide 171

Audit Third-Parties Third-Party Size Budgeted Issue Optimizely 365kb 200kb Perf Budget Maxymizer 190kb Outbrain 645b 1kb Chartbeat 700b 1kb Analytics - Google 26kb 50kb 169kb 100kb Ads - Adnxs 80kb 100kb Ads - Rubicon Project 90kb 100kb Ads - Doubleclick Redundant Perf Budget

Slide 172

Slide 172

Monitor Performance

Slide 173

Slide 173

Make your case! Do your homework

Slide 174

Slide 174

Competitive Analysis Competitor A Our Site 12 39 1.2 Third-Parties Requests Megabytes 35 78 3 Third-Parties Requests Megabytes Competitor B 4 Third-Parties 24 2 Requests Megabytes

Slide 175

Slide 175

Gather Compelling Results wpostats.com/2017/03/03/bbc-load-abandonment.html

Slide 176

Slide 176

Get Specific Evilcorp® Script Our Site 14 39 2.4 Third-Parties Requests Megabytes 3 Requests added 1.5 Megabytes

Slide 177

Slide 177

Comparative Data

Slide 178

Slide 178

Get Results

Slide 179

Slide 179

Block Third-Party

Slide 180

Slide 180

Slide 181

Slide 181

Compare Results

Slide 182

Slide 182

Use Real User Monitoring (RUM) soasta.com/blog/what-if-analysis-predictive-analytics/

Slide 183

Slide 183

Compare Results

Slide 184

Slide 184

Compare Results

Slide 185

Slide 185

“Who is Paravel and what do they bring to the table?”

Slide 186

Slide 186

Slide 187

Slide 187

Slide 188

Slide 188

Slide 189

Slide 189

Slide 190

Slide 190

Slide 191

Slide 191

Slide 192

Slide 192

Slide 193

Slide 193

Slide 194

Slide 194

“Who is Paravel and what do they bring to the table?”

Slide 195

Slide 195

Slide 196

Slide 196

Slide 197

Slide 197

Slide 198

Slide 198

Slide 199

Slide 199

Slide 200

Slide 200

Slide 201

Slide 201

Slide 202

Slide 202

Talk it out!

Slide 203

Slide 203

“Everything should have a value, because everything has a cost.” —Tim Kadlec

Slide 204

Slide 204

Slides! Links! https://noti.st/trentwalton https://speakerdeck.com/trentwalton

Slide 205

Slide 205

Links From Slides https://twitter.com/csswizardry/status/915886339391918083 https://www.ghostery.com/ https://trentwalton.com/tag/third-party/ https://better.fyi/trackers/ https://trentwalton.com/notes/2018/01/23/third-party-script-prevalence-on-alexa-top-50.html http://requestmap.webperf.tools/ https://www.webpagetest.org/ https://twitter.com/addyosmani/status/1156451928349372417?lang=en https://builtwith.com/ https://web.archive.org/web/20190514221642/https://har.tech/ https://www.charlesproxy.com/ https://www.businessinsider.com/30-of-all-internet-users-will-ad-block-by-2018-2017-3 https://marketingland.com/survey-shows-us-ad-blocking-usage-40-percent-laptops-15-percentmobile-216324 https://twitter.com/jasonfried/status/1003979608042164230 https://wpostats.com/2017/03/03/bbc-load-abandonment.html https://community.akamai.com/customers/s/article/ WebPerformancemPulseWhatIfdashboardHowdoesitworkAndwhydoesyourbusinessneedit20180621151913? language=en_US

Slide 206

Slide 206

Tools I Use Ghostery Calibre SpeedCurve DareBoost HAR.tech Charles App Request Map Generator BuiltWith

Slide 207

Slide 207

Thanks! @TrentWalton