+ All Categories
Transcript
Page 1: Waterfall AntiPatterns - Web Performance Analysis

Waterfall AntiPatterns

NY Web Performance GroupFebruary 27, 2013

Rick ViscomiPerformance Engineer

Page 2: Waterfall AntiPatterns - Web Performance Analysis

About Me

● Performance EngineerScripps Networks Interactive○ Food Network○ Travel Channel○ HGTV

● Open source developer○ trunk8○ red dwarf

Page 3: Waterfall AntiPatterns - Web Performance Analysis

Web Performance

Page 4: Waterfall AntiPatterns - Web Performance Analysis
Page 7: Waterfall AntiPatterns - Web Performance Analysis

Waterfall AntiPatterns

Page 8: Waterfall AntiPatterns - Web Performance Analysis

Anatomy of a Request

● DNS Lookup● Initial Connection● SSL Negotiation● TTFB● Content Download

Page 9: Waterfall AntiPatterns - Web Performance Analysis

HTTP Responses

● 301 Moved Permanently● 302 Found

Page 10: Waterfall AntiPatterns - Web Performance Analysis

HTTP Responses

● 304 Not Modified

● Cache static content with long TTL○ Cache-Control: max-age=31536000

Last-Modified: Wed, 27 Feb 2013 15:17:34 GMT

● Cache busting○ style_20130228.css

Page 11: Waterfall AntiPatterns - Web Performance Analysis

HTTP Responses

● 404 Not Found

Extra Credit: What happened here?

Page 13: Waterfall AntiPatterns - Web Performance Analysis

Navigation Timing

● domContentLoaded* (document.ready)● Start Render (first paint)● loadEvent* (onload)● Document Complete (loadEventStart)* Chrome and Firefox only

Page 14: Waterfall AntiPatterns - Web Performance Analysis

Navigation Timing

Page 15: Waterfall AntiPatterns - Web Performance Analysis

Navigation Timing

Page 16: Waterfall AntiPatterns - Web Performance Analysis

Navigation Timing

Page 17: Waterfall AntiPatterns - Web Performance Analysis

Request Serialization

● "stair step" pattern

● many requests

● few connections○ 2 - 6

● HTTP 2.0?

Page 18: Waterfall AntiPatterns - Web Performance Analysis

Request Serialization

Connection View

cssjavascriptimagesflash

Page 19: Waterfall AntiPatterns - Web Performance Analysis

Closed Connections

● TCP overhead

● Enable Keep-Alive

Page 20: Waterfall AntiPatterns - Web Performance Analysis
Page 22: Waterfall AntiPatterns - Web Performance Analysis

Summary

● waterfall slope● request components● HTTP responses

○ redirects○ conditional GETs○ errors

● page load events● request concurrency● network utilization

Page 23: Waterfall AntiPatterns - Web Performance Analysis

Thank You

Rick Viscomijrvis.com

@rick_viscomi

Hands-OnWeb Performance

Optimization Workshop

Coming Soon:

June 18, 2013Santa Clara, CA

Page 24: Waterfall AntiPatterns - Web Performance Analysis

Preview: Worst of WebPagetest

● 46 requests○ 5 successful

● 21 seconds to Start Render

● 30% gzip savings

www.aplia.com

Page 25: Waterfall AntiPatterns - Web Performance Analysis

Preview: Worst of WebPagetest

● 443 requests

● 8,000 DOM elements

● 1.6 MB of JavaScript

● 75 unique domains

coder143.com

Page 26: Waterfall AntiPatterns - Web Performance Analysis

Preview: Worst of WebPagetest

● 2 MB page weight

● 26 second load time

● 17 second repeat view

www.taboradelaide.edu.au/

Page 27: Waterfall AntiPatterns - Web Performance Analysis

Thank You

Rick Viscomijrvis.com

@rick_viscomi

Hands-OnWeb Performance

Optimization Workshop

Coming Soon:

June 18, 2013Santa Clara, CA


Top Related