-
Notifications
You must be signed in to change notification settings - Fork 21
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
Performance 2022: CWV gaming #37
Conversation
…ng metrics section
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.
Looks good, thanks y'all!
In order to accurately detect the LCP overlay hacks, we need to make sure the element that we're evaluating for overlay styles is the actual LCP element. I will add this and my other suggestions in a separate branch.
@25prathamesh @rviscomi |
@tunetheweb same question as the other PR, could you merge this if I'm unavailable this week? |
OK, but bit confused where this is. Are we merging @mel-ada 's changes into this one? And then good to merge if no further feedback? Or something else? |
Yeah the plan is to finish the review on #39 and merge into this. Then we can resolve the open feedback and merge this. |
* [WIP] add soft gaming metrics detections: doesElementCoverPercentageOfViewport, findHighestZ. Default isLcpStaticallyDiscoverable to true. Update lcpOverlay metric to target LCP metric only. * Update dist/performance.js Co-authored-by: Rick Viscomi <rviscomi@users.noreply.github.com> * remove IntersectionObserver, remove findHighestZ, gather all styles instead of only computed or only inline, improve soft metric logic * resolve linting errors Co-authored-by: Rick Viscomi <rviscomi@users.noreply.github.com>
@tunetheweb @rviscomi @25prathamesh List of all Custom Metrics Added in PR:
Tests for PR:Inline JS UA Detection PassingExpected Result:
CodePen: WPT Result: https://www.webpagetest.org/result/220531_AiDc2M_B2N/1/details/#waterfall_view_step1 External JS UA Detection PassingExpected Result:
WPT Result: (See Example url in test, not a CodePen) Strict & Soft CWV Metric Hacks PassingExpected Result:
Test Codepen: WPT result: |
@25prathamesh will wait for your OK since you were going to check some other things. If I don’t hear back by this evening, then will go ahead and merge. |
HI @tunetheweb I did another round of testing with new JS, and everything working properly, you can merge Strict & Soft CWV Metric Hacks Passing WPT Test URL - Inline JS UA Detection Passing External JS UA Detection Passing WPT Test URL - |
Looks like you made that commit on your own branch. Can you open a PR to this branch? |
|
Progress on #16 HTTPArchive/almanac.httparchive.org#2890
Test page: https://codepen.io/rviscomi/pen/rNJpEQd
Test results: https://webpagetest.httparchive.org/result/220528_ZS_E/1/details/#waterfall_view_step1