window.performance can also be null in some cases.