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

docs(audits): distinguish document.write() audit from intervention #9644

Merged
merged 6 commits into from
Sep 9, 2019

Conversation

paulirish
Copy link
Member

this resulted from some back-n-forth with @mfriesenhahn

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

LGTM

lighthouse-core/audits/dobetterweb/no-document-write.js Outdated Show resolved Hide resolved
lighthouse-core/audits/dobetterweb/no-document-write.js Outdated Show resolved Hide resolved
lighthouse-core/audits/dobetterweb/no-document-write.js Outdated Show resolved Hide resolved
* - Lighthouse doesn't report here on that situation, though it'll show up in `errors-in-console`
* The intercention may also not block the .write() (because the connection wasn't slow),
* but it will emit a console warning.
* - Lighthouse doesn't highlight this here or in errors-in-console. (TODO: it probably should?).
Copy link
Collaborator

Choose a reason for hiding this comment

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

issue then?

Copy link
Member Author

Choose a reason for hiding this comment

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

good call. my mistake lighthouse does report these just fine. fixed and added a demo URL so we can test it out easy.

lighthouse-core/audits/dobetterweb/no-document-write.js Outdated Show resolved Hide resolved
paulirish and others added 4 commits September 6, 2019 16:58
Co-Authored-By: Patrick Hulce <patrick.hulce@gmail.com>
Co-Authored-By: Patrick Hulce <patrick.hulce@gmail.com>
Co-Authored-By: Patrick Hulce <patrick.hulce@gmail.com>
Co-Authored-By: Patrick Hulce <patrick.hulce@gmail.com>
Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

seems destined to get out of sync with the intervention implementation but LGTM to have it somewhere :)

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

Successfully merging this pull request may close these issues.

4 participants