Some browsers don't have window.performance at all.