Skip to content

Commit

Permalink
refactor: remove old TTI code (#2452)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce authored Jun 7, 2017
1 parent 65db419 commit 4096e68
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 304 deletions.
254 changes: 0 additions & 254 deletions lighthouse-core/audits/time-to-interactive.js

This file was deleted.

1 change: 0 additions & 1 deletion lighthouse-core/config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ module.exports = {
// 'time-to-firstbyte',
'first-interactive',
'consistently-interactive',
'time-to-interactive',
'user-timings',
'critical-request-chains',
'webapp-install-banner',
Expand Down
12 changes: 0 additions & 12 deletions lighthouse-core/lib/traces/pwmetrics-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,6 @@ class Metrics {
return safeGet(siExt, 'value.timings.visuallyComplete');
}
},
{
name: 'Time to Interactive (vAlpha)',
id: 'tti',
getTs: auditResults => {
const ttiExt = auditResults['time-to-interactive'].extendedInfo;
return safeGet(ttiExt, 'value.timestamps.timeToInteractive');
},
getTiming: auditResults => {
const ttiExt = auditResults['time-to-interactive'].extendedInfo;
return safeGet(ttiExt, 'value.timings.timeToInteractive');
}
},
{
name: 'First Interactive (vBeta)',
id: 'ttfi',
Expand Down
34 changes: 0 additions & 34 deletions lighthouse-core/test/audits/time-to-interactive-test.js

This file was deleted.

6 changes: 3 additions & 3 deletions lighthouse-core/test/config/config-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,14 @@ describe('Config', () => {
audits: [
'accessibility/color-contrast',
'first-meaningful-paint',
'time-to-interactive',
'first-interactive',
'estimated-input-latency',
],
categories: {
'needed-category': {
audits: [
{id: 'first-meaningful-paint'},
{id: 'time-to-interactive'},
{id: 'first-interactive'},
],
},
'other-category': {
Expand Down Expand Up @@ -376,7 +376,7 @@ describe('Config', () => {
extends: true,
settings: {
onlyCategories: ['performance', 'missing-category'],
onlyAudits: ['time-to-interactive', 'missing-audit'],
onlyAudits: ['first-interactive', 'missing-audit'],
},
});

Expand Down

0 comments on commit 4096e68

Please sign in to comment.