-
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(uses-rel-preconnect): add FCP and LCP savings #15281
Conversation
might need a double check to make sure there's good coverage on the tests |
core/audits/uses-rel-preconnect.js
Outdated
await LanternFirstContentfulPaint.getPessimisticGraph(pageGraph, processedNavigation); | ||
const fcpGraphURLs = new Set(); | ||
fcpGraph.traverse(node => { | ||
if (node.type === 'network' ) fcpGraphURLs.add(node.record.url); |
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: I realized this is copied but can you fix in both places?
if (node.type === 'network' ) fcpGraphURLs.add(node.record.url); | |
if (node.type === 'network') fcpGraphURLs.add(node.record.url); |
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.
uh why doesnt yarn lint
catch this lol
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.
https://eslint.org/docs/latest/rules/no-multi-spaces
Looks like the lint rule only flags if there are multiple spaces.
No description provided.