Fix timer if window.performance doesn't exist