AnsweredAssumed Answered

Trigger script after Munchkin loads (callback?)

Question asked by Nik Friedman TeBockhorst on Sep 26, 2019
Latest reply on Sep 26, 2019 by Sanford Whiteman

I need to do some Munchkin API calls on a page for lead association on an external hosted landing page. I can't seem to find a callback function based on a successful asynchronous load of the Munchkin API, so I end up with some of the lead association calls failing because they take place prior to Munchkin's load.

 

My only work around (so far) is to use the blocking load of the Munchkin script, which works reliably, but of course is a blocking event and I can't force it to load at the bottom of the page.

 

Is there a callback when Munchkin loads? I'd rather not have my scripts polling for the API's availability if I can help it.

 

Thanks!

Outcomes