From fccf070ed28c735bd06738c0b23c7e4e0ecf5586 Mon Sep 17 00:00:00 2001 From: kate hollenbach Date: Thu, 14 Jun 2018 18:13:53 -0700 Subject: [PATCH] fixes #2797 by removing window.performance.now shim the shim for window.performance.now was introduced in 2014 to resolve some timing issues. at the time, it wasn't available in all browsers, but now it's available in everything except Opera Mini, so it seems safe to remove this shim. --- src/core/shim.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/core/shim.js b/src/core/shim.js index 8e0e4acc3f..229edd1000 100644 --- a/src/core/shim.js +++ b/src/core/shim.js @@ -15,22 +15,6 @@ window.requestAnimationFrame = (function() { ); })(); -// use window.performance() to get max fast and accurate time in milliseconds -window.performance = window.performance || {}; -window.performance.now = (function() { - var load_date = Date.now(); - return ( - window.performance.now || - window.performance.mozNow || - window.performance.msNow || - window.performance.oNow || - window.performance.webkitNow || - function() { - return Date.now() - load_date; - } - ); -})(); - /** * shim for Uint8ClampedArray.slice * (allows arrayCopy to work with pixels[])