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

UX and Performance

UX and Performance

Page performance is a user experience. Here's how to make that experience as awesome as possible.

Adam Conrad

June 17, 2015
Tweet

More Decks by Adam Conrad

Other Decks in Programming

Transcript

  1. Thinking like a true UXer...what matters to me as a

    user of meetups is staying involved! Before I begin...
  2. *unless you’re Facebook or Reddit, or another site where you

    waste time on the UI Theory: Performance is all that matters*
  3. All people want to do is get from A to

    B and complete task ASAP
  4. This is a majority of page weight, so do your

    80/20 and trim the fat! 1. Make your images smaller
  5. http://zoompf.com/downloads/Zoompf%20-%20Achieving%20Better%20Image%20Optimization %20with%20Lossy%20Techniques.pdf For JPG (photos): • ALWAYS SAVE AS PROGRESSIVE

    • if q> 85 – Reduce to 85 always (> 90 has no benefits) – Consider Q 75 if it saves more than 30% • If pixel area < 10,000 – Always reduce to 60. Lower if possible • Consider tweaking – Blurs, softens, sharpens, etc
  6. http://zoompf.com/downloads/Zoompf%20-%20Achieving%20Better%20Image%20Optimization %20with%20Lossy%20Techniques.pdf For JPG (photos): • ALWAYS SAVE AS PROGRESSIVE

    • if q> 85 – Reduce to 85 always (> 90 has no benefits) – Consider Q 75 if it saves more than 30% • If pixel area < 10,000 – Always reduce to 60. Lower if possible • Consider tweaking – Blurs, softens, sharpens, etc For PNG (all else): PNG24 to PNG8 – When < 5000 colors – When < 10,000 pixel area • PNG to JPEG – Per case, apply when > 30% savings
  7. Kidding, it’s JPGs, duh, just seeing if you’re paying attention!

    ImageOptim (for everyone) ImageAlpha (for PNGs) JPEGmini Lite (for GIFs)
  8. Skeuomorphism via CSS3 is expensive (which is probably why flat

    is a good thing) 2. Cool it with the effects
  9. Cutting code in ½ can mean more than 2.5x faster

    sites! http://benfrain.com/css-performance-revisited-selectors-bloat-expensive-styles/ The biggest killer is bloat (redundant / unused styles)
  10. What have we learned? 1. Make your images small 2.

    Minimize effects, transitions 3. Remove waste, consolidate everything else