Hey Team, if I set navigateDelay to 300 and add it...
# experimentation
c
Hey Team, if I set navigateDelay to 300 and add it before the html growthbook implementation in the head, would it only add UP to that delay, and would it only apply for redirect tests (I'm currently running a redirect test and the SRM is way out i.e. 95% control, 5% variation)? I also run visual editor tests
r
Hi Luke, yes you're understanding is correct for both. The navigateDelay will only affect redirect tests and it will increase the amount of time the trackingCallback has in order to complete, so up to 300ms.
We had a PR to address this here, as for the PR, for some tracking libraries like GA4 and GTM, GrowthBook waits until the tracking call finishes.  So this will likely be much faster than 300ms unless the user is on a very slow network.  For other tracking libraries like Segment, we follow their best practices and wait a standard 300ms.
If performance is critical, we recommend doing A/B testing using Edge Workers instead of on the client.  We have an example using Cloudflare here, but also support Fastly and AWS: https://docs.growthbook.io/lib/edge/cloudflare