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

Anatomy of a responsive page load, Responsive Day Out 2013

Andy Hume
March 01, 2013

Anatomy of a responsive page load, Responsive Day Out 2013

Make content appear fast on the screen. Presentation from Responsive Day Out 2013

Andy Hume

March 01, 2013
Tweet

More Decks by Andy Hume

Other Decks in Technology

Transcript

  1. page load time PERFORMANCE page load time bandwidth use battery

    life server capacity fast interface reliability
  2. <script> if (isModernBrowser()) { var s = document.createElement('script'); s.src =

    "app.js"; document.head.appendChild(script); } </script> CUTTING THE MUSTARD
  3. CSS DOWNLOAD <link href="main.css" rel="stylesheet" /> <!-- For larger viewports

    --> <link href="larger.css" media="screen and (min-width: 350px)" rel="stylesheet" />
  4. PRE-RENDER CUT THE MUSTARD? NO FONTS SHOW FONTS NO NO

    SUPPORT WOFF? FONTS IN STORAGE? NO
  5. POST-RENDER STORAGE AVAILABLE? NO FONTS SHOW FONTS NO DOWNLOAD FONTS:

    BASE64 ENCODED IN JSON CACHE FONTS IN STORAGE
  6. POST-RENDER STORAGE AVAILABLE? NO FONTS SHOW FONTS NO DOWNLOAD FONTS:

    BASE64 ENCODED IN JSON CACHE FONTS IN STORAGE