Skip to content
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(load-fast-4-pwa): use computed artifacts #4981

Merged
merged 4 commits into from
Apr 18, 2018

Conversation

patrickhulce
Copy link
Collaborator

means we'll never pass with the caveat :D we can always answer the question!

Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm % nits

const MAXIMUM_TTFI = 10 * 1000;

const WHITELISTED_STATUS_CODES = [307];
const MAXIMUM_TTI = 10 * 1000;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to call out explicitly:
We're changing the PWA speed threshold from TTFI <= 10s to be a slightly more aggressive TTI < 10s.

const metricComputationData = {trace, devtoolsLog, settings};
const tti = await artifacts.requestConsistentlyInteractive(metricComputationData);

const score = Number(tti.timing <= MAXIMUM_TTI);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://developers.google.com/web/progressive-web-apps/checklist does say

interactive <10s for first visit on a simulated 3G network.

let's change this to < just to simplify. nice to stay single digits. :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sg :)

const trace = artifacts.traces[Audit.DEFAULT_PASS];
const devtoolsLog = artifacts.devtoolsLogs[Audit.DEFAULT_PASS];
const settingOverrides = {throttlingMethod: 'simulate', throttling: mobile3GThrottling};
const settings =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you drop a comment for this line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah good call done

@patrickhulce patrickhulce merged commit 9771117 into master Apr 18, 2018
kdzwinel pushed a commit to kdzwinel/lighthouse that referenced this pull request Aug 16, 2018
@brendankenny brendankenny deleted the load_fast_4_pwa_lantern branch October 8, 2018 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants