Added a polyfill for the navigation timing API to fix issues on iOS/Safari.