* Returns the value of some navigation timing parameter. * Feature detection is used for safety on browsers that do not support the * performance API. * @param {!Window} win * @param {string} timingEvent The name of the timing event, e.g. * 'navigationStart' or 'domContentLoadEventStart'.
(win, timingEvent)
| 109 | * @return {number} |
| 110 | */ |
| 111 | function getNavigationTiming(win, timingEvent) { |
| 112 | return ( |
| 113 | (win['performance'] && |
| 114 | win['performance']['timing'] && |
| 115 | win['performance']['timing'][timingEvent]) || |
| 116 | 0 |
| 117 | ); |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Check whether Google Ads supports the A4A rendering pathway is valid for the |
no outgoing calls
no test coverage detected