Rich-text Reply

what's the timeout for the Conditional Activation polling?

mdickson 04-03-15
Accepted Solution

what's the timeout for the Conditional Activation polling?

Conditional Activation polls the DOM every 50ms before activating. At what point, if ever, does it give up?

Level 1

tomfuertes 04-03-15
 

Re: what's the timeout for the Conditional Activation polling?

If you use the statement form it polls indefinitely if the URL and Audience targeting match and/or until the page unloads. If you use the function it runs only once and instantly with the snippet until "activate()" is called. You can code around the statement polling with a function polling solution and clear your own interval ala:

function(activate) {
var timeout = setInterval(function() {
if ($("selector").length) {
clearInterval(timeout);
activate();
}
if ($.isReady) clearInterval(timeout);
}, 50);
}
____
- Tom Fuertes | CTO @ CROmetrics / LinkedIn
"Most Impactful Use of Personalization" and "Experience of the Year" Optie award winner.


mdickson 04-03-15
 

Re: what's the timeout for the Conditional Activation polling?

Perfect, thanks.
Level 1