Fix safari

Safari was currently failing to load because the performance variable was not properly being checked for existence.