Skip to content

Conversation

@adamraine
Copy link
Contributor

@adamraine adamraine commented Feb 28, 2024

#2065

https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5250877

Uses the new RenderBlocking insight in the trace engine to find render blocking requests. Also eliminates the need for the TagsBlockingFirstPaint artifact.

@connorjclark
Copy link
Collaborator

Did you assess the differences between our logic in TabsBlockingFirstPaint and using the blink signal? ref #2065 (comment)

@adamraine
Copy link
Contributor Author

I verified that our expectations in dbw smoke test are the same but did not inspect the raw data.

@adamraine
Copy link
Contributor Author

Looks like this is working, but we will need to wait for M123 to be stable before we think about shipping this

const maybeGetTiming = (ts) => ts === undefined ? undefined : getTiming(ts);

const navigationId = timeOriginEvt.args.data?.navigationId;
if (!navigationId) throw new Error('No navigation ID');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Several old traces don't have this event...so may need to update them or do a workaround

@adamraine adamraine changed the title WIP: use trace engine as the source of truth for render blocking core(render-blocking-resources): use trace engine as the source of truth Apr 11, 2024
@adamraine adamraine marked this pull request as ready for review April 11, 2024 17:31
@adamraine adamraine requested a review from a team as a code owner April 11, 2024 17:31
@adamraine adamraine requested review from connorjclark and removed request for a team April 11, 2024 17:31
@adamraine adamraine changed the title core(render-blocking-resources): use trace engine as the source of truth core(render-blocking): use trace engine as the source of truth Apr 11, 2024
@adamraine adamraine merged commit 591988e into main Apr 11, 2024
@adamraine adamraine deleted the render-blocking-rpp-trace-engine branch April 11, 2024 18:01
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.

3 participants