-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Move Documents load time and emit meaningful content timestamp #1460
base: master
Are you sure you want to change the base?
Conversation
this.emitLogEvent(PREVIEW_METRIC, { | ||
encoding, | ||
event_name: LOAD_METRIC.previewLoadEvent, | ||
value: previewLoadTime.elapsed || 0, | ||
[LOAD_METRIC.fileInfoTime]: infoTime.elapsed || 0, | ||
[LOAD_METRIC.convertTime]: convertTime.elapsed || 0, | ||
[LOAD_METRIC.downloadResponseTime]: downloadTime.elapsed || 0, | ||
[LOAD_METRIC.contentLoadTime]: contentLoadTime.elapsed || 0, | ||
[LOAD_METRIC.contentLoadTime]: contentLoadTimeDuration || 0, | ||
[LOAD_METRIC.meaningfulContentTimestamp]: meaningfulContentTimestamp, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be contentLoadTimestamp
to stay consistent with its other attribute? Should it default to 0
, as well?
@@ -1174,11 +1172,6 @@ class DocBaseViewer extends BaseViewer { | |||
// Broadcast that preview has 'loaded' when page structure is available | |||
if (!this.loaded) { | |||
this.loaded = true; | |||
this.emit(VIEWER_EVENT.load, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this affect our existing metrics?
Conrad Chan seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Moved the
load
event emitted fromDocBaseViewer
frompagesinit
to the firstpagerendered
event for PDFJS.Also modified the
emitLoadMetrics()
method inPreview.js
to include ameaningful_content_timestamp
which can be used to calculate Time to Meaningful Content (TTMC)