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

Performance Metrics for Modern Apps

Performance Metrics for Modern Apps

It has become critically important to improve your performance of web apps. Users should have a good visual experience while loading a web app. Be it pre-loading important resources, or displaying cached resources, or rendering hero elements first, users should not feel blank and should be able to interact with web apps quickly

There are certain myths about web performance monitoring. Myths like "My website loads in X seconds" or "Performance only matters at load time". But, the reality is poor performance can happen at any time, not just during load. Traditional performance metrics like DOMContentLoad and onLoad are highly unreliable

You can learn how to improve user experience and web performance in different scenarios using various performance metrics

Shubham Jindal

March 05, 2018
Tweet

Other Decks in Education

Transcript

  1. WHY? 40% will abandon a site that takes >3secs to

    load 47% expect a page to load in 2 secs 52% say fast load time speed is important to site loyalty
  2. TIMELINE What metrics to look for? What do they mean?

    Why are they important? How are they measured? Web APIs to look for? 6
  3. LOAD METRICS Determines final load time of a web page

    ๏ Page Load Time (onLoad) ๏ Total Page Load Time (SPA)
  4. HOW TO IMPROVE? ➤ onLoad only works for non SPA

    frameworks ➤ Always look for “Total Page Load Time” COMPRESS MINIFY HTTP2 https://www.iconfinder.com
  5. MILESTONE METRICS Elapsed time b/w navigation to a page and

    a critical milestone ๏ Time To First Byte (TTFB) ๏ Server Response Time (SRT) ๏ DOM Content Loaded (DCL)
  6. HOW TO IMPROVE? Reduce blocking scripts Reduce DOM size Use

    CDN for TTFB for SRT for DCL https://www.iconfinder.com
  7. SPEED INDEX ➤ Overall Score based on visual progress of

    viewport of page ➤ Can’t be computed on client side https://rigor.com/blog/2017/07/monitoring-the-ux
  8. VISUALLY COMPLETE ➤ Content in the viewport has finished rendering

    ➤ Nothing has changed in the viewport after that Why viewport? ๏ Good user experience ๏ User can see full content loaded in screen and engage
  9. WEBPAGE TEST ➤ Test any website from any location across

    globe with different connection speeds ➤ Mostly run on EC2 machines ➤ Synthetic tests DEMO
  10. FMP AND TTI ➤ FMP: Most “important” part of page

    is visually rendered ➤ TTI: Point at which page is visually rendered and capable to respond to user input ๏ FMP can’t be measured easily ๏ Most “important” parts of pages are different for each website ๏ TTI Polyfill by Chrome
  11. PROBLEMS WITH LOCAL TESTING VARIANT NETWORK SPEED DIFFERENT/LATEST BROWSER DIFFERENT

    OPERATING SYSTEMS DIFFERENT GEO LOCATIONS https://www.iconfinder.com
  12. “ When performance is measured, performance improves When performance is

    measured and reported, the rate of improvement accelerates -Thomas Monson