-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
core(audits): clarify diff between load-fast-enough-for-pwa's TTI and perf TTI #6286
Conversation
Yes this is intentional.
When using |
d8b7b1a
to
31a2639
Compare
@patrickhulce modified this to have branching text for when the TTI is overridden. |
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.
PR probably needs a new name ;) LGTM!!
@exterkamp I know you have a lot on your plate, but do you want to take another look? |
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.
LGTM % nits!
const override = context.settings.throttlingMethod === 'provided' || | ||
!isDeepEqual(context.settings.throttling, mobileThrottling); | ||
|
||
const displayValueFinal = override?displayValueTextWithOverride: displayValueText; |
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.
nit: spacing :)
|
||
const displayValueFinal = override?displayValueTextWithOverride: displayValueText; | ||
|
||
const settings = override ? Object.assign({}, context.settings, settingOverrides): |
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.
nit: spacing before :
:)
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.
heh, updated linting is failing travis on this now :P
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.
yeah, just more comment/test description nits from me, otherwise LGTM!
Summary
In load-fast-enough-for-PWA the interactive when "provided" + mobile throttling is defaulted to force a simulated TTI, not the provided TTI (as shown in the top as the true TTI). @brendankenny remembers this being purposeful, but it does make inconsistent numbers. @patrickhulce do you have some context?Instead, will provide clearer explanation for why the TTIs might be different.
TODO:
If we do want to revert to this pass through of settings we need to update a test in
lighthouse-core/test/audits/load-fast-enough-for-pwa-test.js
Related Issues/PRs
fixes: #6284