Skip to content

Instantly share code, notes, and snippets.

@yckart
Last active December 16, 2015 20:18
Show Gist options
  • Select an option

  • Save yckart/5491033 to your computer and use it in GitHub Desktop.

Select an option

Save yckart/5491033 to your computer and use it in GitHub Desktop.
performance.now polyfill
(function (performance) {
performance.now = performance.now ||
performance.webkitNow ||
performance.msNow ||
performance.mozNow ||
Date.now || function () {
return new Date().getTime();
};
}(this.performance = this.performance || {}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment