[rabbitmq-discuss] 【SOS】issues about execution javascript in IPhone

Li, Chenglin chenglin.li at quanshi.com
Wed Oct 17 03:11:51 BST 2012


Hi All

 

we want to use RabbitMQ javascript library to IPhone, and we use UIWebView
to execute javascript: stringByEvaluatingJavaScriptFromString, but there are
some restrictions for execution JS on IOS as below:

 

/***************************************************************************
*/

JavaScript execution time is limited to 10 seconds for each top-level entry
point. If your script executes for more than 10 seconds, the web view stops
executing the script. This is likely to occur at a random place in your
code, so unintended consequences may result. This limit is imposed because
JavaScript execution may cause the main thread to block, so when scripts are
running, the user is not able to interact with the webpage.

/***************************************************************************
/

 

 

I want to confirm with you :

1. Does the rabbitmq javascript library have above issues? rabbitmq
javascript execution time will be over 10 seconds? 

2. if above issue exist, how to resolve it?

 

 

Thanks,

Jack

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121017/594df306/attachment.htm>


More information about the rabbitmq-discuss mailing list