-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Remove images from critical request chains. #2085
Conversation
Thanks for the contribution! You should have a look at the smokehouse test as they are failing. If you need help just give a shout. |
b542d06
to
9fc8afa
Compare
Hi @wardpeet! Thanks so much for your patience with this. I've modified the tests so that they pass, but would you mind checking to make sure that I'm not creating any gaps in coverage? |
@@ -38,6 +38,10 @@ class CriticalRequestChains extends ComputedArtifact { | |||
if (resourceTypeCategory === WebInspector.resourceTypes.XHR._category) { | |||
return false; | |||
} | |||
// Images are also non-critical. | |||
if (resourceTypeCategory === WebInspector.resourceTypes.Image._category) { |
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.
I wonder if it would be cleaner to do an array of resourceTypes that are non-critical and check includes on it similar to request priority
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.
good idea. let's do that @abacon
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.
@abacon can you do this in a followup PR?
I'll land this now.
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.
Yeah, no problem! Thanks for merging. 😍💖💪
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.
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.
Nah it's all good! Thanks so much @stramel :)
@@ -38,6 +38,10 @@ class CriticalRequestChains extends ComputedArtifact { | |||
if (resourceTypeCategory === WebInspector.resourceTypes.XHR._category) { | |||
return false; | |||
} | |||
// Images are also non-critical. | |||
if (resourceTypeCategory === WebInspector.resourceTypes.Image._category) { |
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.
@abacon can you do this in a followup PR?
I'll land this now.
Fixes #1550. Hope this is still useful!