diff --git a/common/performance-timeline-utils.js b/common/performance-timeline-utils.js index 6845d6cbc689fc..d50da5a833040f 100644 --- a/common/performance-timeline-utils.js +++ b/common/performance-timeline-utils.js @@ -42,3 +42,10 @@ function test_entries(actualEntries, expectedEntries) { } }) } + +function delayedLoadListener(callback) { + window.addEventListener('load', function() { + // TODO(cvazac) Remove this setTimeout when spec enforces sync entries + setTimeout(callback, 0) + }) +} diff --git a/server-timing/cross_origin.https.html b/server-timing/cross_origin.https.html index 1421b38a05eb8c..d31c7b006caf23 100644 --- a/server-timing/cross_origin.https.html +++ b/server-timing/cross_origin.https.html @@ -2,7 +2,7 @@
- + - + + - + + - + + diff --git a/server-timing/service_worker_idl.https.html b/server-timing/service_worker_idl.https.html index 1c1be8995b3310..5c493fdcb0ab58 100644 --- a/server-timing/service_worker_idl.https.html +++ b/server-timing/service_worker_idl.https.html @@ -2,7 +2,7 @@ - + - +