In browserify context, this is not a Window object on commonjs module.
So, when we use browserify, timing.js cannot find window.performance properly and getTimes() always returns false.
I fixed this by exporting module via module.exports explicitly instead of using this.
In browserify context,
this
is not aWindow
object on commonjs module. So, when we use browserify, timing.js cannot findwindow.performance
properly andgetTimes()
always returnsfalse
.I fixed this by exporting module via
module.exports
explicitly instead of usingthis
.