INNER CODE UNIT · JavaScript
onContentLoad
cyrus-and/chrome-har-capturer · lib/har.js:37
const onContentLoad = stats.domContentEventFiredMs - stats.firstRequestMs;
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
},