Rich-text Reply

Delivery Timeout

chadpry 03-18-16

Delivery Timeout

Is there any sort of timeout threshold set in the WYSIWYG editor before it would give up on delivering changes? Or would that only come into play if you set up your own polling function with custom code which had a timeout?

Level 2

DavidS 03-21-16
 

Re: Delivery Timeout

Hi chadpry,

 

Thanks for reaching out to Optimizely Support!

As far as I know there is no timeout threshold set in the Visual Editor. 

 

If you are talking about the variation code and its execution, Optimizely will determine whether or not each line of your variation code is jQuery or plain Javascript. If it is jQuery the line will be executed as soon as the element exists on the page. If it is plain Javascript then Optimizely will wait until DOM is ready. 

We have a dedicated article on the Optimizely order of execution that may be of interest to you. You can check it out by clicking here.  

 

I hope that is helpful. Feel more than free to reply back with any additional questions at all.

 

Best,
David

 

Optimizely
chadpry 03-21-16
 

Re: Delivery Timeout

Thanks David, that article is very helpful.

 

So it will check the page for the jQuery element to exist every 50ms. Does this ever time out?

 

Thanks again!

Level 2
robertchan 03-21-16
 

Re: Delivery Timeout

 @CHADPRY - to ensure that your code never times out, you can use setInterval like so:

 

setInterval(function(){

//code you want to run and check on

}, 5000); //checks your code every 5 seconds
Robert Chan

chadpry 03-21-16
 

Re: Delivery Timeout

[ Edited ]

In the image below, how many times will it wait 50MS before stopping/giving up?

Level 2
DavidS 03-22-16
 

Re: Delivery Timeout

Hi chadpry,

 

It does timeout. It will when DOM is ready.

 

Let me know if there is anything else I can do to help,

 

Best,

David 

Optimizely