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

Web Performance: Forget Everything I Said Last Time

Web Performance: Forget Everything I Said Last Time

An updated version of my web performance talk from a few years ago. Here we explain what's changed, what's the same, and how to dive deeper into user centric performance metrics.

Matt Shull

March 13, 2018
Tweet

More Decks by Matt Shull

Other Decks in Technology

Transcript

  1. WEB PERFORMANCE
    FORGET EVERYTHING I TOLD YOU LAST TIME

    View Slide

  2. FLASHBACK

    View Slide

  3. WHAT WE DISCUSSED LAST TIME
    ▸ Page Load Time Sucks
    ▸ Time to First Byte
    ▸ Speed Index
    ▸ Page Weight

    View Slide

  4. WHAT WE DISCUSSED LAST TIME
    ▸ Performance False Prophets:
    ▸ Google AMP
    ▸ Facebook Instant Articles
    ▸ Apple News Articles

    View Slide

  5. WHAT WE DISCUSSED LAST TIME
    ▸ We need Performance Budgets
    ▸ Use the right type of images
    ▸ PNGs can be better than JPEGs
    ▸ Sometimes all you need is an SVG
    ▸ WebP All The Things (when it helps)
    ▸ Measure Measure Measure!!!

    View Slide

  6. WHAT WE DISCUSSED LAST TIME
    ▸ Why performance matters:
    ▸ Long load times impacted bounce rate and
    conversion rate
    ▸ We knew somehow it impacted the bottom line
    of businesses selling online
    ▸ Slow sites suck

    View Slide

  7. WHAT’S NEW

    View Slide

  8. Patrick Meenan and Tammy Everts

    View Slide

  9. Patrick Meenan and Tammy Everts

    View Slide

  10. Patrick Meenan and Tammy Everts

    View Slide

  11. Patrick Meenan and Tammy Everts

    View Slide

  12. HOW MUCH ARE YOU
    LEAVING ON THE TABLE?

    View Slide

  13. DEMO: SPEED SCORECARD
    mattshull.com/webperf2018

    View Slide

  14. USER CENTRIC
    METRICS

    View Slide

  15. SPEED INDEX
    ▸ Helps us understand how fast the user perceived
    the page to load
    ▸ Number of seconds when 90% of the above the
    fold content loaded
    ▸ Ability to track “in the lab” for the last few years
    ▸ Ability to track “in the field” somewhat available

    View Slide

  16. SPEED INDEX

    View Slide

  17. NEW QUESTIONS
    ▸ Is it useful?
    ▸ Is it usable?
    ▸ Is it delightful?

    View Slide

  18. NEW METRICS

    View Slide

  19. FIRST MEANINGFUL PAINT
    ▸ Answers the “is it useful?” question
    ▸ Useful is subjective and hard to measure

    View Slide

  20. FIRST MEANINGFUL PAINT

    View Slide

  21. FIRST MEANINGFUL PAINT
    ▸ Answers the “is it useful?” question
    ▸ Useful is subjective and hard to measure
    ▸ “Hero Elements”
    ▸ Loading these important parts first makes the
    user perceive the page is loading faster

    View Slide

  22. FIRST INTERACTIVE
    ▸ Time when the page is both visually rendered and
    capable of reliably responding to user input
    ▸ Reasons for long FI:
    ▸ JavaScript needed to make components on the
    page work hasn’t loaded
    ▸ There are long tasks blocking the main thread

    View Slide

  23. CONSISTENTLY INTERACTIVE & INPUT LATENCY
    ▸ Consistently Interactive
    ▸ Time at when the main thread is able to
    consistently respond to user input
    ▸ Input Latency
    ▸ Should be 100ms or less for a smooth,
    interactive experience

    View Slide

  24. SO WHAT?
    mattshull.com/webperf2018

    View Slide

  25. BETTER TOOLING

    View Slide

  26. “IN THE LAB” TESTING: LIGHTHOUSE
    ▸ Created by Google
    ▸ Allows you to measure performance and other
    important features/analytics
    ▸ Takes measurements from Javascript and other
    tools (such as ffmpeg for screen captures)

    View Slide

  27. mattshull.com/webperf2018
    DEMO: LIGHTHOUSE

    View Slide

  28. “IN THE LAB” TESTING: WEBPAGETEST.ORG
    ▸ Still a great tool for measuring:
    ▸ Time to First Byte
    ▸ Speed Index
    ▸ Page Weight

    View Slide

  29. “IN THE LAB” TESTING: WEBPAGETEST.ORG

    View Slide

  30. “IN THE LAB” TESTING: WEBPAGETEST.ORG

    View Slide

  31. “IN THE FIELD” TESTING: FIRST PAINT & FIRST CONTENTFUL PAINT

    View Slide

  32. “IN THE FIELD” TESTING: FIRST PAINT & FIRST CONTENTFUL PAINT

    View Slide

  33. “IN THE FIELD” TESTING: FIRST PAINT & FIRST CONTENTFUL PAINT

    View Slide

  34. “IN THE FIELD” TESTING: FIRST MEANINGFUL PAINT

    View Slide

  35. “IN THE FIELD” TESTING: FIRST MEANINGFUL PAINT

    View Slide

  36. “IN THE FIELD” TESTING: FIRST MEANINGFUL PAINT

    View Slide

  37. “IN THE FIELD” TESTING: FIRST CONSISTENTLY INTERACTIVE

    View Slide

  38. WHAT’S COMING

    View Slide

  39. REMEMBER GOOGLE AMP?
    mattshull.com/webperf2018

    View Slide

  40. MACHINE LEARNING
    ▸ Going to really give us actionable insights
    ▸ Find correlations between metrics that we don’t
    realize impact each other
    ▸ Also a buzz word! (But really it’s just stats and
    programming)

    View Slide

  41. TAKE AWAYS

    View Slide

  42. NEW METRICS
    ▸ First Meaningful Paint
    ▸ First Interactive / Consistently Interactive
    ▸ Input Latency

    View Slide

  43. OLDER METRICS STILL WORK!
    ▸ Time to First Byte
    ▸ Speed Index
    ▸ Page Weight

    View Slide

  44. MEASURE MEASURE MEASURE
    ▸ Lighthouse in Chrome Dev Tools
    ▸ WebPageTest.org
    ▸ Javascript metrics
    ▸ Find the metrics that are important to you

    View Slide

  45. PERFORMANCE ISN’T A SINGLE
    POINT IN TIME

    View Slide

  46. MATT SHULL
    Web Performance Consultant

    mattshull.com/webperf2018

    View Slide