cdeutsch / JsBridge

Simpler bidirectional communication between JavaScript in a UIWebView and C# in your native app.
https://components.xamarin.com/view/jsbridge
MIT License
91 stars 22 forks source link

mt.js uses synchronous calls - is there a reason for this? #6

Open rkaiser0324 opened 10 years ago

rkaiser0324 commented 10 years ago

Excellent library here!

One thing I've noticed is that mt.js appears to send all requests synchronously, resulting in thread blocking. In our case, it's very noticeable with a HTML5 slider control, that calls Mt.App.fireEvent many times in succession as its dragged.

Is there a reason that this couldn't be modified to make requests asynchronously instead?

cdeutsch commented 9 years ago

I'm not aware of any limitation. Would take a pull request.