Race condition when acdl event is pushed and added as event type, the custom code block doesn't execute and throws a timeout error
In my website , I see a race condition rarely when the user land on first load rarely i could see my web sdk page load rule is not triggering. So i created an rule checking whether the acdl, ecid and one trust is available and emitting an acdl event on its availability. But this rule checking throws a timeout error on a race condition first page load where it records a unique visitor but not the pageview.
We are triggering that checking rule on acdl event pageloaded, but also throwing race condition and says custom code has been time out.
Any help how this can be fixed.
Note : Will this be caused as when acdl is pushed before launch library is not ready
please advise