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

Know Your Application Rendering Inside Out

Jai Santhosh
September 15, 2016

Know Your Application Rendering Inside Out

This talk focuses on the What and the How to measure your Web Application Rendering performance and the right tools needed for your armoury.

Jai Santhosh

September 15, 2016
Tweet

More Decks by Jai Santhosh

Other Decks in Technology

Transcript

  1. Device Refresh Rates ✤ Most devices refresh your screen 60

    times a second ✤ Which means practically 60 frames per second ✤ Which means per frame, we have ~16ms
  2. Device Refresh Rates ✤ Most devices refresh your screen 60

    times a second ✤ Which means practically 60 frames per second ✤ Which means per frame, we have ~16ms
  3. Device Refresh Rates ✤ Frame Timing: When the frame needs

    to be ready by ✤ Frame Budget: How long to produce a frame ~16ms
  4. Using Compositor-only Properties ✤ Try to use only transform and

    opacity ✤ Using will-change will force the element to a new layer
  5. tl;dr ✤ The Rendering LifeCycle JavaScript -> Style -> Layout

    -> Paint -> Composite ✤ Janks and Long Frame Rates ✤ Debugging and Optimizing Janks ✤ Debugging Layers and enabling GPU Rasterisation
  6. ✤ Breaking down Pages to Pagelets ✤ More Code Execution

    means Long frame rates ✤ Native apps hold the edge as they are already in binary ✤ Remember Measure First, Optimize Later! What next?