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

WebappInstallBanner should depend on WorksOffline and LoadFastEnough4Pwa #5264

Closed
slightlyoff opened this issue May 18, 2018 · 4 comments
Closed

Comments

@slightlyoff
Copy link

We have always said that one of the most important aspects of "PWAness" is that these experiences meet the expectations of users when it comes to reliably fast loading.

Therefore, I'd like for our "installability" check to be gated on working offline and loading fast enough.

We're going to continue to raise the bar to this level on the Chrome (product) side, so LH getting there first would be a huge help.

Thanks!

@slightlyoff slightlyoff changed the title WebappInstallBanner should depend on WorksOffline and perhaps WebappInstallBanner should depend on WorksOffline and LoadFastEnough4Pwa May 18, 2018
@patrickhulce
Copy link
Collaborator

The good news the audit is already gated on a stricter criteria than working offline audit, the start URL must work offline.

/**
* @param {LH.Artifacts} artifacts
* @return {{failures: Array<string>, warnings: Array<string>}}
*/
static assessOfflineStartUrl(artifacts) {
const failures = [];
const warnings = [];
const hasOfflineStartUrl = artifacts.StartUrl.statusCode === 200;
if (!hasOfflineStartUrl) {
failures.push('Service worker does not successfully serve the manifest\'s start_url');
// TODO(phulce): align gatherer `debugString` with `explanation`
if (artifacts.StartUrl.debugString) {
failures.push(artifacts.StartUrl.debugString);
}
}
if (artifacts.StartUrl.debugString) {
warnings.push(artifacts.StartUrl.debugString);
}
return {failures, warnings};
}

Loading fast enough is being considerably bumped in #5233 so the category won't be green until the app is fast enough. Visual badging needs discussion :)

@slightlyoff
Copy link
Author

Ah! I hadn't understood that it tested this rather than just looking for a match on the scope. Great!

Who needs to be involved to make the call on visual badging?

@slightlyoff
Copy link
Author

/cc @vinamratasingal

@paulirish
Copy link
Member

duping into #5930

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants