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

Fast and fpsious

Fast and fpsious

There are two types of performance on web, we can optimize page loads and network requests and we can optimize rendering performance. Rendering performance can have huge impact on UX, if your app is slower then 30fps it is most likely that users will show less engagement to it. This talks will show some techniques and strategies on how to achieve almost 60fps on your mobile web/hybrid mobile app.

Avatar for Ivan Vuković

Ivan Vuković

October 03, 2015
Tweet

Transcript

  1. How users would describe fast web? “It opens fast!” “Animations

    are so smooth!” “I could scroll it for pages!!!”
  2. What makes web fast? “It opens fast!” “Animations are so

    smooth!” “I could scroll it for pages!!!” Optimized CRP Animation and scrolling run at 60fps
  3. JavaScript Measure it with JS Profiler flag. Control memory consumption

    (check Memory flag) Compare speed results of solutions on jsperf.com Don’t concentrate on every single line.
  4. JS Animations Use requestAnimationFrame instead setTimeout/setInterval. Do your javascript first.

    Run requestAnimationFrame at the end of animate function. If animation is simple, consider CSS transitions as optimization option.
  5. What to read next? Paul Lewis blog (www.aerotwist.com) Book: Designing

    for Performance by Lara Callender Hogan David Walsh blog (http://davidwalsh.name/) Addy Osmani’s talk on memory management in JS Udacity Web Performance Optimization, Browser Rendering Optimization Courses