Fix Safari by checking more carefully for 'performance'