INNER CODE UNIT · JavaScript
onLoad
cyrus-and/chrome-har-capturer · lib/har.js:38
const onLoad = stats.loadEventFiredMs - stats.firstRequestMs;
// process this page load entries
const entries = [...stats.entries.values()]
.map((entry) => parseEntry(pageId, entry))
.filter((entry) => entry);
// outcome
return {
page: {
id: pageId,
title: stats.url,
startedDateTime,
pageTimings: {
onContentLoad,
onLoad
},
_user: stats.user
},
entries