Re: Running JavaScript in iOS WebView.
Re: Running JavaScript in iOS WebView.
- Subject: Re: Running JavaScript in iOS WebView.
- From: "Glenn R. Martin" <email@hidden>
- Date: Wed, 17 Nov 2010 17:40:57 -0500
On 17 Nov 2010, at 17:28 , email@hidden wrote:
>
> 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.
>
>
>
> So one of your routines (I'm guessing rcs.invoke) is taking a long time (more than 10 seconds - perhaps it is waiting for some networked based action to complete). So if your JavaScript code is waiting for completion, you're going to have to refactor that code to work more asynchronously and not block.
Another limitation i have noticed is that if the end point is secure (ie HTTPS), scripts dont seem to execute.
Glenn R. Martin_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden