-
Notifications
You must be signed in to change notification settings - Fork 163
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
MWPW-142878 add events for milo post lcp & milo delayed #2881
base: stage
Are you sure you want to change the base?
Conversation
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## stage #2881 +/- ##
==========================================
+ Coverage 95.89% 96.24% +0.34%
==========================================
Files 173 236 +63
Lines 46316 54255 +7939
==========================================
+ Hits 44415 52218 +7803
- Misses 1901 2037 +136 ☔ View full report in Codecov by Sentry. |
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'm not particularly fond of the idea of consumers hooking into the milo rendering pipeline.
This event previously has been removed https://github.com/adobecom/milo/pull/1282/files#diff-28218f239d8d9c4d41e1924854440b50964619e56058fdd0ae243ff5ff6c616dL126 I can imagine with a tight coupling, this would have broken consumer code.
Can you not run your code after loadArea? https://github.com/adobecom/bacom/blob/stage/scripts/scripts.js#L189
Also to add to this postLCP
might not really be postLCP. This method might go away or get refactored - from a performance standpoint, we also have the 2nd section popping up as LCP or other elements, currently we have a very late LCP due to congestion shortly after loading the first section. We can migrate the event, but it makes change harder if you have consuming code relying on something that comes from milo core.
Hey @mokimo , |
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.
@vhargrave @mokimo i think i stand in the middle :) i agree with Victor that giving hooks to consumer is great, but with Okan that running code before some pretty structural milo processes are run might lead to surprises.
another thing: is it something we could do in loadPostLCP to cut event dispatch from main thread with timeout?
For fresh eyes looking at the PR, I've talked with with Okah & Rares and agreed to remove the events and instead add a callback to the google login function due to the concern of keeping these events maintainable. |
I've removed the Ready for Stage label, as I didn't see any QA performed for this. We usually get either @SilviuLCF or @NadiiaSokolova involved to test and apply the label. The story is on a different board, so if you have QEs of your own, they can definitely help out, but I want to avoid pushing untested code. |
This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR. |
Resolves: MWPW-142878
Test URLs:
This branch shows how we'll listen to the two events to load both additional analytics and then get the primary cta url which we redirect to.