Slide 1

Slide 1 text

Northeastern Tech Talk Jonathan Klein 6/17/14 @jonathanklein

Slide 2

Slide 2 text

Slides, Links http://jkle.in/neu

Slide 3

Slide 3 text

About Me

Slide 4

Slide 4 text

About Me • Senior Performance Engineer At Etsy

Slide 5

Slide 5 text

About Me • Senior Performance Engineer At Etsy • I write the Etsy Site Performance Reports

Slide 6

Slide 6 text

About Me • Senior Performance Engineer At Etsy • I write the Etsy Site Performance Reports • Organize Boston Web Perf Meetup Group

Slide 7

Slide 7 text

The Value of Performance

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

Real World Examples

Slide 10

Slide 10 text

Real World Examples • Firefox: -2.2 seconds = 15.4% more downloads

Slide 11

Slide 11 text

Real World Examples • Firefox: -2.2 seconds = 15.4% more downloads • Shopzilla: -5 seconds = 7-12% increase in revenue

Slide 12

Slide 12 text

Real World Examples • Firefox: -2.2 seconds = 15.4% more downloads • Shopzilla: -5 seconds = 7-12% increase in revenue • Google: +400ms = 0.76% fewer searches

Slide 13

Slide 13 text

Real World Examples • Firefox: -2.2 seconds = 15.4% more downloads • Shopzilla: -5 seconds = 7-12% increase in revenue • Google: +400ms = 0.76% fewer searches • Amazon: +100ms = -1% revenue

Slide 14

Slide 14 text

Real World Examples • Firefox: -2.2 seconds = 15.4% more downloads • Shopzilla: -5 seconds = 7-12% increase in revenue • Google: +400ms = 0.76% fewer searches • Amazon: +100ms = -1% revenue • http://www.phpied.com/the-performance-business-pitch/

Slide 15

Slide 15 text

What About a University?

Slide 16

Slide 16 text

What About a University? • More applicants

Slide 17

Slide 17 text

What About a University? • More applicants • Happier Students/Faculty

Slide 18

Slide 18 text

What About a University? • More applicants • Happier Students/Faculty • Increased endowment contributions

Slide 19

Slide 19 text

Today’s Focus

Slide 20

Slide 20 text

Today’s Focus 1. Number of Bytes (Page Weight)

Slide 21

Slide 21 text

Today’s Focus 1. Number of Bytes (Page Weight) 2. What Kind of Bytes

Slide 22

Slide 22 text

Today’s Focus 1. Number of Bytes (Page Weight) 2. What Kind of Bytes 3. How They Are Delivered

Slide 23

Slide 23 text

80% of page load time takes place on the client

Slide 24

Slide 24 text

1. Page Weight

Slide 25

Slide 25 text

http://httparchive.org/interesting.php#bytesperpage

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

Things to do now

Slide 30

Slide 30 text

Things to do now • Gzip text resources (CSS/JS)

Slide 31

Slide 31 text

Things to do now • Gzip text resources (CSS/JS) • Minify CSS/JS

Slide 32

Slide 32 text

Things to do now • Gzip text resources (CSS/JS) • Minify CSS/JS • Optimize Images

Slide 33

Slide 33 text

Things to do now • Gzip text resources (CSS/JS) • Minify CSS/JS • Optimize Images • smush.it (web)

Slide 34

Slide 34 text

Things to do now • Gzip text resources (CSS/JS) • Minify CSS/JS • Optimize Images • smush.it (web) • Wesley (command line)

Slide 35

Slide 35 text

Things to do now • Gzip text resources (CSS/JS) • Minify CSS/JS • Optimize Images • smush.it (web) • Wesley (command line)

Slide 36

Slide 36 text

2. The Right Bytes

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

/scripts/modernizr.js /scripts/mosaic.1.0.1.min.js /scripts/jquery.hashchange.min.js /scripts/jquery.easytabs.min.js /scripts/top-nav.js /scripts/content-swap.js /scripts/easytabs-settings.js /scripts/social-media-pane.js /scripts/jquery.touchSwipe.min.js /scripts/show-more.js /scripts/googleSearch.js /scripts/touchswipe-settings.js /scripts/mosaic-settings.js /scripts/jquery.flexslider.js /scripts/jquery.tmpl.min.js /scripts/facebook-wall.js /scripts/mobile-nav.js

Slide 40

Slide 40 text

Problems With JavaScript

Slide 41

Slide 41 text

Problems With JavaScript • Blocks the main thread

Slide 42

Slide 42 text

Problems With JavaScript • Blocks the main thread • Parse and execution time

Slide 43

Slide 43 text

Problems With JavaScript • Blocks the main thread • Parse and execution time • Eats up CPU/battery on mobile

Slide 44

Slide 44 text

Not All Bytes Are Created Equal

Slide 45

Slide 45 text

3. Delivering The Bytes

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

KeepAlive On

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

Things to do now

Slide 56

Slide 56 text

Things to do now • Turn on KeepAlive in Your Apache Config

Slide 57

Slide 57 text

Things to do now • Turn on KeepAlive in Your Apache Config • Consolidate CSS/JS files

Slide 58

Slide 58 text

Things to do now • Turn on KeepAlive in Your Apache Config • Consolidate CSS/JS files • Add Caching Headers

Slide 59

Slide 59 text

Quick Recap

Slide 60

Slide 60 text

One Day of Work

Slide 61

Slide 61 text

One Day of Work 1. Gzip text resources (CSS/JS)

Slide 62

Slide 62 text

One Day of Work 1. Gzip text resources (CSS/JS) 2. Turn on KeepAlive

Slide 63

Slide 63 text

One Day of Work 1. Gzip text resources (CSS/JS) 2. Turn on KeepAlive 3. Minify CSS/JS

Slide 64

Slide 64 text

One Day of Work 1. Gzip text resources (CSS/JS) 2. Turn on KeepAlive 3. Minify CSS/JS 4. Optimize Images

Slide 65

Slide 65 text

One Day of Work 1. Gzip text resources (CSS/JS) 2. Turn on KeepAlive 3. Minify CSS/JS 4. Optimize Images 5. Add Caching Headers

Slide 66

Slide 66 text

One Day of Work 1. Gzip text resources (CSS/JS) 2. Turn on KeepAlive 3. Minify CSS/JS 4. Optimize Images 5. Add Caching Headers 6. Eliminate unnecessary JavaScript

Slide 67

Slide 67 text

One Day of Work 1. Gzip text resources (CSS/JS) 2. Turn on KeepAlive 3. Minify CSS/JS 4. Optimize Images 5. Add Caching Headers 6. Eliminate unnecessary JavaScript 7. Consolidate CSS/JS files

Slide 68

Slide 68 text

Thanks!

Slide 69

Slide 69 text

@jonathanklein ! [email protected] Get in Touch