• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Google Developers Live: Waterfall AntiPatterns - Web Performance Analysis
 

Google Developers Live: Waterfall AntiPatterns - Web Performance Analysis

on

  • 929 views

You've been asked to investigate why your web site is loading slowly. You've heard of WebPagetest.org so you enter the URL and run a test. What appears next is a colorful chart that looks like a Dr. ...

You've been asked to investigate why your web site is loading slowly. You've heard of WebPagetest.org so you enter the URL and run a test. What appears next is a colorful chart that looks like a Dr. Seuss illustration. Some bars are long, some are short. Some bars are blue, some are green. "That's nice," you say to yourself, wondering what to do next. It looks benign, innocently simple. But you know it holds many secrets.

The waterfall chart is a mysterious force to some developers. Performance gurus seem to be able to divine the ailments of a slow site at one quick glance. "How?" you wonder. The reality is that anyone can read a waterfall chart - if they know that they are looking for.

This presentation will bestow upon you the ability to recognize specific patterns in a waterfall chart, patterns which are the signs of a slow site. Using these newfound skills, you will become that performance guru and everyone will rejoice.

Presented on Google Developers Live on June 13, 2013. https://developers.google.com/live/shows/779042419

Statistics

Views

Total Views
929
Views on SlideShare
927
Embed Views
2

Actions

Likes
5
Downloads
12
Comments
0

1 Embed 2

https://twitter.com 2

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Google Developers Live: Waterfall AntiPatterns - Web Performance Analysis Google Developers Live: Waterfall AntiPatterns - Web Performance Analysis Presentation Transcript

    • WaterfallAntiPatternsGoogle Developers LiveJune 13, 2013Rick ViscomiWeb Developer, YouTube
    • Web Performance
    • 1 2 3 4 5 6 7 8 99 runsMedian Selection1 2 3 4 5 6 7 8 9 1010 runs
    • 1 2 3 4 5 6 7 8 99 runsMedian Selection1 2 3 4 5 6 7 8 9 1010 runs
    • Waterfall
    • Waterfall Slope
    • Waterfall AntiPatterns
    • Anatomy of a Request● DNS Lookup● Initial Connection● SSL Negotiation● TTFB● Content Download
    • HTTP Responses: Redirects● 301 Moved Permanently● 302 Found
    • HTTP Responses: Not Modified● Conditional GET● Cache static content with long TTL○ Cache-Control: max-age=31536000Last-Modified: Thu, 13 Jun 2013 15:17:34GMT● Cache busting○ style_20130614.css
    • HTTP Responses: Errors● 404 Not FoundExtra Credit: What happened here?
    • Canceled RequestsInternet Explorer only »
    • Navigation Timing● domContentLoaded* (document.ready)● Start Render (first paint)● loadEvent* (onload)● Document Complete (loadEventStart)* Chrome and Firefox only
    • Navigation Timing
    • Navigation Timing
    • Navigation Timing
    • Request Serialization● "stair step" pattern● many requests● few connections○ 2 - 6● HTTP 2.0?
    • Request SerializationConnection Viewcssjavascriptimagesflash
    • Request SerializationConnection Viewcssjavascriptimagesflash
    • Closed Connections● TCP overhead● Enable Keep-Alive≈
    • Network Silence● bandwidth utilization low● CPU utilization high○ why?Demo
    • Summary● waterfall slope● request components● HTTP responses○ redirects○ conditional GETs○ errors● page load events● request concurrency● network utilization
    • Preview: Worst of WebPagetest● 46 requests○ 5 successful● 21 seconds to StartRender● 30% gzip savingswww.aplia.com
    • Preview: Worst of WebPagetest● 443 requests● 8,000 DOMelements● 1.6 MB of JavaScript● 75 unique domainscoder143.com
    • Preview: Worst of WebPagetest● 2 MB page weight● 26 second load time● 17 second repeat viewwww.taboradelaide.edu.au/
    • Preview: Worst of WebPagetest● 1.4 seconds to first byte● 4.3 seconds of orange● 84% images or JScomoeliminarlasestrias.org
    • Further ReadingHigh PerformanceBrowser NetworkingIlya GrigorikWPT Documentation● sites.google.com/.../docs/Make the Web Faster● developers.google.com/speed/Planet Performance● perfplanet.com
    • Thank YouRick Viscomirick@jrvis.com+Rick Viscomi@rick_viscomiHands-OnWeb PerformanceOptimization WorkshopComing Soon:June 18, 2013Santa Clara, CA