Skip to content

Commit

Permalink
More LoAF updates (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb authored Feb 8, 2024
1 parent 3041cab commit f50ecb4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/js/send-web-vitals.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@ function sendWebVitals() {
debug_loaf_script_total_duration: totalDuration,
debug_loaf_script_compile_duration: script.executionStart - script.startTime,
debug_loaf_script_exec_duration: script.startTime + script.duration - script.executionStart,
debug_loaf_script_source: script.sourceLocation || script.invoker || script.name,
debug_loaf_script_type: script.invokerType || script.type,
debug_loaf_script_source: script.sourceLocation || script.invoker || script.name, // TODO: remove after Chrome 123
debug_loaf_script_type: script.invokerType || script.type, // TODO: remove `|| script.type` after Chrome 123
// New in Chrome 122/123 (will be null until then)
debug_loaf_script_invoker: script.invoker,
debug_loaf_script_source_url: script.sourceURL,
debug_loaf_script_source_function_name: script.sourceFunctionName,
debug_loaf_script_source_char_position: script.sourceCharPosition,

// LoAF metadata.
debug_loaf_meta_length: longAnimationFrames.length,
Expand Down

0 comments on commit f50ecb4

Please sign in to comment.