Skip to content

Conversation

@crisryantan
Copy link
Contributor

@crisryantan crisryantan commented Mar 13, 2025

Summary

We have recently conducted performance tests with mParticle and the different environments: Performance Test Results
As you’ll see, there’s a bit more latency when loading Rokt through the mParticle kit. My understanding is that the page first has to load the mParticle Web SDK, which then injects the Rokt script. The extra steps in mParticle’s initialization plus loading Rokt Wsdk through kit leads to additional overhead. This explains why we’re seeing:

~50ms more in TTI compared to directly loading the Rokt WSDK
~200ms more in TTI when it’s Rokt WSDK “preloaded”

Testing Plan

This is a proof of concept draft PR that I wanted to run by with @alexs-mparticle and @rmi22186 and see how we can improve performance when loading Rokt Wsdk through mparticle kit

_clientId
) {
if (!testMode) {
loadRoktPreloadIframe();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a point in time we can call this even earlier before the kit boots up?

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.

2 participants