Speed Matters

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    3 Favorites & 1 Event

    Speed Matters - Presentation Transcript

    1. Speed Matters Mark Stanton @MarkStanto
    2. Does Speed Matter? • 2 sec delay reduces revenue by 4% • 1/2 sec drops traffic by 20% • fastest 10% of users stay 50% longer than the slowest 10% • 10ms = one man-year per day
    3. Terminology • Empty cache / Primed cache • Refresh / Revisit • Page ready / Page complete • Throughput / Latency
    4. HTTP in 60 seconds • Initial Request GET /assets/logo.png HTTP/1.1 Host: wds-demo.gruden.int User-Agent: Mozilla/5.0... HTTP/1.x 200 OK Server: Apache/2.2.11... Last-Modified: Wed, 09 Sep 2009 17:36:00 GMT Content-Length: 4067 Content-Type: image/png • Subsequent Requests GET /assets/logo.png HTTP/1.1 Host: wds-demo.gruden.int User-Agent: Mozilla/5.0... If-Modified-Since: Wed, 09 Sep 2009 17:36:00 GMT HTTP/1.x 304 Not Modified Server: Apache/1.3.41 ...
    5. Case Study
    6. IE6 21.8s
    7. Firefox3 18.6s
    8. Image Optimisation 755KB Reduction!
    9. Image Optimisation 24 bit PNG 512KB Reduction!
    10. Combine JS • Before: • After: 7 Fewer Requests!
    11. Combine CSS • Before: • After: 6 Fewer Requests!
    12. JS to Bottom Page Ready 1 sec Faster!
    13. Cache Control • ETags • Expires
    14. Cache Control • Etag: "1c014-287d-f824c1c0" • If-None-Match: "1c014-287d-f824c1c0" • 304 Not Modified
    15. Cache Control • Expires: Wed, 08 Oct 2010 02:03:51 GMT • 304 Not Modified
    16. Cache Control • Before: <VirtualHost *:80> ServerName wds-demo.gruden.int DocumentRoot ... ErrorLog /private/var/log/apache2/wds-demo-error_log CustomLog /private/var/log/apache2/wds-demo-access_log common </VirtualHost> • After: <VirtualHost *:80> ServerName wds-demo.gruden.int DocumentRoot ... ErrorLog /private/var/log/apache2/wds-demo-error_log CustomLog /private/var/log/apache2/wds-demo-access_log common ExpiresActive on ExpiresDefault "access plus 1 year" FileETag none </VirtualHost> 90% Fewer 304s!
    17. Cache Control • Cache-Control: "max-age=0, no-cache, no- store, must-revalidate" • Pragma: "no-cache" • Expires: "Wed, 11 Jan 1984 05:00:00 GMT" Doh!
    18. Minify 24KB Reduction!
    19. Minify
    20. GZip • Before: <VirtualHost *:80> ServerName wds-demo.gruden.int DocumentRoot ... ... ExpiresActive on ExpiresDefault "access plus 1 year" FileETag none </VirtualHost> • After: <VirtualHost *:80> ServerName wds-demo.gruden.int DocumentRoot ... AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript ... ExpiresActive on ExpiresDefault "access plus 1 year" 96KB FileETag none </VirtualHost> Reduction!
    21. Split Components Across Domains 2.5 sec Faster in IE6!
    22. Sprites 139KB Reduction! 35 Fewer Requests!
    23. Restructure Content
    24. Restructure Content • Logo into HTML • Lazy load rotators
    25. Restructure Content Page Ready 5 sec Faster!
    26. CSS Selectors • Before: • After: 100 ms Faster!
    27. Huh? 100 ms Faster!
    28. Summary • Optimised Images • Minify • Combined JS • GZip • Combined CSS • Split Domains • JS to the Bottom • Sprites • Cache Control: Expires • Restructure Content
    29. IE6 - Original 21.8s
    30. IE6 - Final 6.0s
    31. Firefox3 - Original 18.6s
    32. Firefox3 - Final 4.1s
    33. Tools • Firefox Plugins • Firebug • YSlow • Page Speed • Cache Status • LiveHTTPHeaders • Charles Proxy
    34. Tools • http://compressorrater.thruhere.net/ • http://developer.yahoo.com/yslow/smushit/ • http://spriteme.org/ • http://spritegen.website-performance.org/
    35. Tools • http://spritegen.website-performance.org/ • http://spriteme.org/ • http://developer.yahoo.com/yslow/smushit/ • http://compressorrater.thruhere.net/
    36. Hat Tip • http://stevesouders.com/ • http://developer.yahoo.com/performance/
    37. Conclusion • Look for low hanging fruit • Make incremental improvements • Incorporate into your process
    38. Conclusion • Small upfront investment - continuous benefit • Reduced bandwidth • Reduced load times • Everyone lives happily ever after
    39. Thanks • http://delicious.com/markstanton/speed-talk • @MarkStanto
    40. Pop Quiz
    41. Pop Quiz
    42. Pop Quiz
    SlideShare Zeitgeist 2009

    + Mark StantonMark Stanton Nominate

    custom

    756 views, 3 favs, 1 embeds more stats

    As we build richer, more complex web applications i more

    More info about this document

    CC Attribution-NonCommercial LicenseCC Attribution-NonCommercial License

    Go to text version

    • Total Views 756
      • 677 on SlideShare
      • 79 from embeds
    • Comments 0
    • Favorites 3
    • Downloads 0
    Most viewed embeds
    • 79 views on http://www.webdirections.org

    more

    All embeds
    • 79 views on http://www.webdirections.org

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Groups / Events