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

Over-promised & under-delivered

Over-promised & under-delivered

A.K.A. You Ruined My Holiday. Given at Front End London, April 2014.

Peter Gasston

April 24, 2014
Tweet

More Decks by Peter Gasston

Other Decks in Technology

Transcript

  1. “Over a mobile connection, it may take 2 seconds to

    download the initial page of HTML, but it can be immediately rendered.
  2. “Even as the rest of the JavaScript application is being

    downloaded, the user can interact with the page. It feels 5x faster.” http://nerds.airbnb.com/weve-launched-our-first-nodejs-app-to-product
  3. “By rendering our page content on the server and deferring

    all JavaScript execution… we’ve dropped the time to first Tweet to one-fifth of what it was.” https://blog.twitter.com/2012/improving-performance-on-twittercom
  4. var foo = window.matchMedia('(min-width: 800px)').matches; if (foo) { // Load

    functions } yepnope({ test : foo, yep : 'bigscreen.js', nope : 'smallscreen.js' });
  5. <picture> <source media="(min-width: 45em)" srcset="large-1.jpg, large-2.jpg 2x"> <source media="(min-width: 18em)"

    srcset="med-1.jpg, med-2.jpg 2x"> <source srcset="small-1.jpg, small-2.jpg 2x"> <img src="small-1.jpg" alt="Alt text”> </picture> http://picture.responsiveimages.org/