title: Javascript for measure browser performance to turn animations on or off
body: <p>I have a website with certain animations, CSS, animated gifs and "JS animations". On some mobile devices the animations are slow, so I want to detect that and turn the CSS animation off and use a static image for the gif animations instead.</p>
  
  <p>The mobile devices browser do support CSS animations, but they're slow when it executes.</p>
  
  <p>How can I measure the actual browser performance with a Javascript function so I can decide whether turn animations on or off? Any Javascript library maybe?</p>