requestanimationframe.js 284 B

1234567
  1. // requestAnimationFrame
  2. // Offload animation repainting to browser for optimized performance.
  3. // http://dvcs.w3.org/hg/webperf/raw-file/tip/specs/RequestAnimationFrame/Overview.html
  4. // By Addy Osmani
  5. Modernizr.addTest('raf', !!Modernizr.prefixed('requestAnimationFrame', window));