Skip to content

add timing data to xprops #2471

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

Merged
merged 1 commit into from
Feb 18, 2025
Merged

add timing data to xprops #2471

merged 1 commit into from
Feb 18, 2025

Conversation

wsbrunson
Copy link
Member

add sdk init time from sdk-client as well as the duration property from the first sdk script loaded on the page.

We will use this information in the buttons iframe to mark sdk init end and also report on the duration of the sdk load time on the merchant's page

@wsbrunson wsbrunson requested a review from a team as a code owner February 12, 2025 21:51
return "unknown";
}

return performanceEntry.duration === 0 ? "yes" : "no";
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this yes/no standard for existing performance queries that we have?

Copy link
Member Author

@wsbrunson wsbrunson Feb 18, 2025

Choose a reason for hiding this comment

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

its what we did in nextgen. normally I would have done true/false but the presence of unknown made me go a different direction.

I'm not sure of any precedent for this type of thing, I'm open to suggestions

Copy link
Contributor

@ravishekhar ravishekhar left a comment

Choose a reason for hiding this comment

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

lgtm

@wsbrunson wsbrunson merged commit 7975ee4 into main Feb 18, 2025
4 checks passed
@wsbrunson wsbrunson deleted the add-timings branch February 18, 2025 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants