Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Speed Matters

Mark Zeman
September 05, 2013

Speed Matters

Overview of why front-end performance matter, how to monitor it and the challenges faced when building for an increasingly mobile world.

Mark Zeman

September 05, 2013
Tweet

More Decks by Mark Zeman

Other Decks in Programming

Transcript

  1. 100ms 1s 10s Response Time in Man-computer Conversational Transactions Robert

    B. Miller, 1968 Instant Seamless Yawn! Our perception of response time 3s - Recommended Load Time 6.5s - Alexa 2000 Fall 2012 Miller Response Time 1968
  2. 1 2 3 4 5 6 7 8 9 10

    1.36s 1.37s 1.38s 1.39s 1.41s 1.44s 1.50s 1.63s 1.95s 3.11s Page Load Time Bandwidth (Mbps) Bandwidth doesn’t matter (much)
  3. Minimum round trips to download a file 71kB 143kB 214kB

    285kB 1 2 3 4 5 6 7 8 9 10 11 (TCP Segments) Round Trips Size
  4. Impact of latency 1 2 3 4 0 20 40

    60 80 100 120 140 160 180 200 220 240 Page Load Time (s) Round Trip Time (ms)
  5. GA Site speed sample rate var _gaq = _gaq ||

    []; _gaq.push(['_setAccount', 'UA-XXXXX-XX']); _gaq.push(['_setSiteSpeedSampleRate', 100]); _gaq.push(['_trackPageview']);
  6. 1 2 3 4 5 6 10 8 9 4

    11 13 12 7 14 7
  7. 1. Build mobile first responsive designs 2. Keep CSS background

    images in scoped media queries 3. Conditionally load JavaScript and even HTML fragments based on screen size and capabilities 4. Implement a responsive images solution 5. Handle retina images very carefully and err on the side of performance Jason Grigsby