Rich-text Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
what's the timeout for the Conditional Activation polling?
mdickson 04-03-15

what's the timeout for the Conditional Activation polling?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Conditional Activation polls the DOM every 50ms before activating. At what point, if ever, does it give up?
Solved! Go to Solution.
Highlighted
tomfuertes 04-03-15

Re: what's the timeout for the Conditional Activation polling?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
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.
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.
Re: what's the timeout for the Conditional Activation polling?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report