Skip to content

Commit

Permalink
Remove console timing
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter authored Feb 4, 2025
1 parent 78a266e commit a9437b6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions plugins/optimization-detective/detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,15 +366,12 @@ export default async function detect( {
}

// Abort if the client already submitted a URL Metric for this URL and viewport group.
// TODO: Remove the console timing.
console.time( 'sha1' ); // eslint-disable-line no-console
const alreadySubmittedSessionStorageKey =
await getAlreadySubmittedSessionStorageKey(
currentETag,
currentUrl,
urlMetricGroupStatus
);
console.timeEnd( 'sha1' ); // eslint-disable-line no-console
if ( alreadySubmittedSessionStorageKey in sessionStorage ) {
const previousVisitTime = parseInt(
sessionStorage.getItem( alreadySubmittedSessionStorageKey ),
Expand Down

0 comments on commit a9437b6

Please sign in to comment.