Skip to content
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

Add performance timing marks for key milestones to the framework #256

Open
andydavies opened this issue Dec 9, 2020 · 0 comments
Open
Labels
idea New idea

Comments

@andydavies
Copy link

How quickly (or slowly) the CMP reaches the loaded state has a significant impact on how soon a publisher can start displaying ads.

Timing this process currently involves adding custom code to pages to determine when the first script in the CMP starts execution (in reality we rely on timing when it loads), and further code to listen to the tcloaded event.

CMPs should be instrumented as standard using the User Timing API perfomance.marks so that timing data on when the CMP reaches key milestones is available.

Marks for when the CMP starts execution i.e. (almost) first line of first script, and when it loads i.e. when tcloaded even is dispatched seem the obvious two marks but cmpushown and useractioncomplete would also be interesting.

Using the standard web APIs allow tools and services that understand the marks to collect them.

It also provides CMP vendors with a consistent way of understanding their own performance e.g. is the CMP being loaded late in the page (perhaps via a Tag Manager), have any changes to the code made the CMP faster or slower etc.

@HeinzBaumann HeinzBaumann added the idea New idea label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea New idea
Projects
None yet
Development

No branches or pull requests

2 participants