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(uses-rel-preconnect): add FCP and LCP savings #15281

Merged
merged 7 commits into from
Jul 19, 2023

Conversation

adrianaixba
Copy link
Collaborator

No description provided.

@adrianaixba adrianaixba marked this pull request as ready for review July 18, 2023 22:19
@adrianaixba adrianaixba requested a review from a team as a code owner July 18, 2023 22:19
@adrianaixba
Copy link
Collaborator Author

might need a double check to make sure there's good coverage on the tests

core/audits/uses-rel-preconnect.js Outdated Show resolved Hide resolved
core/test/audits/uses-rel-preconnect-test.js Outdated Show resolved Hide resolved
core/test/audits/uses-rel-preconnect-test.js Outdated Show resolved Hide resolved
core/test/audits/uses-rel-preconnect-test.js Outdated Show resolved Hide resolved
await LanternFirstContentfulPaint.getPessimisticGraph(pageGraph, processedNavigation);
const fcpGraphURLs = new Set();
fcpGraph.traverse(node => {
if (node.type === 'network' ) fcpGraphURLs.add(node.record.url);
Copy link
Member

Choose a reason for hiding this comment

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

Nit: I realized this is copied but can you fix in both places?

Suggested change
if (node.type === 'network' ) fcpGraphURLs.add(node.record.url);
if (node.type === 'network') fcpGraphURLs.add(node.record.url);

Copy link
Collaborator

Choose a reason for hiding this comment

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

uh why doesnt yarn lint catch this lol

Copy link
Member

Choose a reason for hiding this comment

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

https://eslint.org/docs/latest/rules/no-multi-spaces

Looks like the lint rule only flags if there are multiple spaces.

adrianaixba and others added 2 commits July 19, 2023 13:53
Co-authored-by: Adam Raine <6752989+adamraine@users.noreply.github.com>
Co-authored-by: Adam Raine <6752989+adamraine@users.noreply.github.com>
@devtools-bot devtools-bot merged commit 20b8b28 into main Jul 19, 2023
24 checks passed
@devtools-bot devtools-bot deleted the uses-rel-preconnect-savings branch July 19, 2023 22:03
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