on safari window.performace is not supported by all versions