-
Notifications
You must be signed in to change notification settings - Fork 51
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
Show render blocking (Chrome 92) and largest contentful paint. #278
Conversation
In the coming Chrome 92 the render blocking info will be fixed and potetntially work as it should. That means we can highlight which assets that are render blocking (and potentially render blocking). We can also highlight the image (if it is an image) that is the largest contentful paint object. I prepared HARs generated from Chrome/Edge in Browsertime to include this info and plan to release it when Chrome 92 is released.
In Browsertime and coming Chrome 92 we will have support for knowing if a request is render blocking or not. We also will be able to know if an image is the largest Contentful paint (or not). See micmro/PerfCascade#278
@@ -37,7 +37,7 @@ function makeBlock(rectData: RectData, className: string) { | |||
foreignElLazy = (getParentByClassName(rect, "water-fall-chart") as Element) | |||
.querySelector(".tooltip") as SVGForeignObjectElement; | |||
} | |||
showDelayTimeOut = setTimeout(() => { | |||
showDelayTimeOut = window.setTimeout(() => { |
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.
is this needed?
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 can change that sorry, it didn't work without for me it shouldn't be in this commit.
…soulgalore * Adding render blocking and LCP info In Browsertime and coming Chrome 92 we will have support for knowing if a request is render blocking or not. We also will be able to know if an image is the largest Contentful paint (or not). See micmro/PerfCascade#278 * Fix whitespace
I'm gonna push a example HAR in the repo so we have that and then do a little more testing. |
It works in Safari for the redirect (where the background color is set to yellow) let me test tonight if I can get it to work. |
Argh, looking at the server log I could see that I had a service worker on my localhost, serving wrong content for Safari. It works fine. |
Thanks @soulgalore! |
In the coming Chrome 92 the render blocking info will be fixed and potentially work as it should. That means we can highlight which assets that are render blocking (and potentially render blocking).
We can also highlight the image (if it is an image) that is the largest contentful paint object.
I prepared HARs generated from Chrome/Edge in Browsertime to include this info and plan to release it when Chrome 92 is released.
@micmro I'm not a sure how to best highlight those, this is what it looks like at the moment: