use Date instead of performance if performance is not available (hopefully fix iPad issue...)