Slide 1

Slide 1 text

Name
 That
 Script!

Slide 2

Slide 2 text

Hi! paravelinc.com

Slide 3

Slide 3 text

Hi!

Slide 4

Slide 4 text

Hi!

Slide 5

Slide 5 text

Area of Responsibility & Expertise

Slide 6

Slide 6 text

Image Comps

Slide 7

Slide 7 text

Image Comps Frontend

Slide 8

Slide 8 text

Image Comps Frontend Performance

Slide 9

Slide 9 text

Image Comps Frontend Performance A11Y

Slide 10

Slide 10 text

Image Comps Frontend Performance A11Y RWD

Slide 11

Slide 11 text

Image Comps Frontend Performance A11Y RWD Design Systems

Slide 12

Slide 12 text

Image Comps Frontend Performance A11Y RWD Design Systems Command Line

Slide 13

Slide 13 text

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

Slide 14

Slide 14 text

Control

Slide 15

Slide 15 text

Prototypes!

Slide 16

Slide 16 text

Welcome 1 2 3 Next

Slide 17

Slide 17 text

Welcome 1 2 3

Slide 18

Slide 18 text

Welcome 1 2 3

Slide 19

Slide 19 text

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

Slide 20

Slide 20 text

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

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

Integration!

Slide 23

Slide 23 text

CMS

Slide 24

Slide 24 text

Analytics CMS Ad Network

Slide 25

Slide 25 text

Analytics CMS Ad Network AB Testing Comments E-Comm

Slide 26

Slide 26 text

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

Slide 27

Slide 27 text

CSS PNG JS JPG WOFF Analytics Social AB Testing Ad Network

Slide 28

Slide 28 text

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

Slide 29

Slide 29 text

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

Slide 30

Slide 30 text

twitter.com/csswizardry/status/915886339391918083

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

Whose fault is this?

Slide 33

Slide 33 text

I blame myself.

Slide 34

Slide 34 text

But, I’ve been learning.

Slide 35

Slide 35 text

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

Slide 36

Slide 36 text

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

Slide 37

Slide 37 text

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

Slide 38

Slide 38 text

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

Slide 39

Slide 39 text

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

Slide 40

Slide 40 text

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 41

Slide 41 text

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

Slide 42

Slide 42 text

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

Slide 43

Slide 43 text

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

Slide 44

Slide 44 text

Time to Research.

Slide 45

Slide 45 text

Analytics Categories Comments Social Media Advertising

Slide 46

Slide 46 text

Categories ghostery.com

Slide 47

Slide 47 text

Categories ghostery.com

Slide 48

Slide 48 text

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

Slide 49

Slide 49 text

Itemizing Third-Parties

Slide 50

Slide 50 text

View Source view-source:http://trentwalton.com

Slide 51

Slide 51 text

View Source view-source:http://trentwalton.com

Slide 52

Slide 52 text

Ghostery

Slide 53

Slide 53 text

Performance Monitors

Slide 54

Slide 54 text

Portable, Please

Slide 55

Slide 55 text

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

Slide 56

Slide 56 text

HTTP Archive Format HAR (JSON)

Slide 57

Slide 57 text

Now What? HAR website.har

Slide 58

Slide 58 text

har.tech

Slide 59

Slide 59 text

charlesproxy.com

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

Automate this! calendar.perfplanet.com

Slide 63

Slide 63 text

XLS! CSV! They’re for me!

Slide 64

Slide 64 text

Analyze Popular Sites

Slide 65

Slide 65 text

Alexa Top 50 US Sites

Slide 66

Slide 66 text

Alexa Top 50 US Sites 49

Slide 67

Slide 67 text

Alexa Top 50 US Sites 49 46

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

Third-Party Requests across top 46 US sites

Slide 70

Slide 70 text

213 Third Party Domain URLs * domains, not requests

Slide 71

Slide 71 text

22 Average Per Site

Slide 72

Slide 72 text

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% Third-Party Prevalence https://trentwalton.com/tag/Third-Party/

Slide 73

Slide 73 text

What’s a Demdex? better.fyi/trackers

Slide 74

Slide 74 text

What’s a Demdex? better.fyi/trackers

Slide 75

Slide 75 text

Which types were most popular? Ad (Serving) doubleclick.net 2mdn.net (doubleclick) googleadservices.com adnxs.com adsrvr.org Ad (Analytics) demdex.net scorecardresearch.com quantserve.com bluekai.com rubiconproject.com

Slide 76

Slide 76 text

Remarketing! Spatula Buy Now

Slide 77

Slide 77 text

Remarketing! Thank you for your purchase

Slide 78

Slide 78 text

Weather App advertisement Spatula! Shop Now

Slide 79

Slide 79 text

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 Volume Per Site

Slide 80

Slide 80 text

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

Slide 81

Slide 81 text

News & Shopping Ads Analytics CDN Ratings Comments Social Feedback

Slide 82

Slide 82 text

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

Slide 83

Slide 83 text

What! Me, biased?

Slide 84

Slide 84 text

No content

Slide 85

Slide 85 text

No content

Slide 86

Slide 86 text

$ $

Slide 87

Slide 87 text

Time to listen and learn.

Slide 88

Slide 88 text

Vector Media Group Matt Weinberg Lee Goldberg

Slide 89

Slide 89 text

Analytics Ad Network What’s a Tag Manager? AB Testing

Slide 90

Slide 90 text

Dashboard

Slide 91

Slide 91 text

Get Snippets

Slide 92

Slide 92 text

Add Snippets view-source:http://trentwalton.com Tag Manager Script

Slide 93

Slide 93 text

Add Tags & Scripts

Slide 94

Slide 94 text

Pandora’s Box? view-source:http://trentwalton.com Tag Manager Script

Slide 95

Slide 95 text

Get Organized view-source:http://trentwalton.com Tag Manager Script

Slide 96

Slide 96 text

“An analytics strategy should be part of the initial development and design process […]” —Lee Goldberg

Slide 97

Slide 97 text

CSS PNG JS JPG WOFF Analytics Social AB Testing Ad Network

Slide 98

Slide 98 text

CSS PNG JS JPG WOFF Analytics Social AB Testing Ad Network

Slide 99

Slide 99 text

It’s too easy to add scripts. view-source:http://trentwalton.com Tag Manager Script

Slide 100

Slide 100 text

No content

Slide 101

Slide 101 text

“We work towards a global maximum versus a local maximum. Small, hyper-focused changes may seem good at the time…

Slide 102

Slide 102 text

but we have to be mindful of the overall quality of the user-experience and integrity of the brand.” —Matt Weinberg

Slide 103

Slide 103 text

Ads and analytics work together to help our clients. view-source:http://trentwalton.com Tag Manager Script

Slide 104

Slide 104 text

Don’t blame the tool.

Slide 105

Slide 105 text

Take Action!

Slide 106

Slide 106 text

Establish a Center of Excellence!

Slide 107

Slide 107 text

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

Slide 108

Slide 108 text

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

Slide 109

Slide 109 text

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

Slide 110

Slide 110 text

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

Slide 111

Slide 111 text

Monitor Performance

Slide 112

Slide 112 text

Make a business case!

Slide 113

Slide 113 text

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

Slide 114

Slide 114 text

Case Studies & Quotes wpostats.com/2017/03/03/bbc-load-abandonment.html

Slide 115

Slide 115 text

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

Slide 116

Slide 116 text

“What if my digital property had better performance? How would that affect the bottom line of my company?” —Edward Isarevich

Slide 117

Slide 117 text

webpagetest.org

Slide 118

Slide 118 text

Get Results

Slide 119

Slide 119 text

Block Third-Party

Slide 120

Slide 120 text

No content

Slide 121

Slide 121 text

Compare Results

Slide 122

Slide 122 text

Plug in Results soasta.com/blog/what-if-analysis-predictive-analytics/

Slide 123

Slide 123 text

Plug in Results soasta.com/blog/what-if-analysis-predictive-analytics/

Slide 124

Slide 124 text

Talk it out!

Slide 125

Slide 125 text

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

Slide 126

Slide 126 text

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

Slide 127

Slide 127 text

Links From Slides https://twitter.com/csswizardry/status/915886339391918083 https://www.ghostery.com https://calibreapp.com https://speedcurve.com https://www.dareboost.com https://har.tech https://www.charlesproxy.com https://calendar.perfplanet.com/2014/driving-webpagetest-from-a-google-docs-spreadsheet 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 https://wpostats.com/2017/03/03/bbc-load-abandonment.html https://www.soasta.com/blog/what-if-analysis-predictive-analytics https://www.webpagetest.org

Slide 128

Slide 128 text

Tools I Use Ghostery Calibre SpeedCurve DareBoost HAR.tech Charles App

Slide 129

Slide 129 text

People to Follow / Who Helped Andy Davies
 Simon Hearne Matt Weinberg Lee Goldberg Harry Roberts Aral Balkan Laura Kalbag Dave Rupert

Slide 130

Slide 130 text

Thanks! @TrentWalton