senseobservationsystems / commonsense-javascript-lib

Library for using CommonSense API in Javascript applications
Apache License 2.0
1 stars 0 forks source link

AJAX instead of synchronous requests #2

Closed smuldr closed 10 years ago

smuldr commented 11 years ago

The library is now written so that all request are performed synchronously, which means that the entire app stops while you wait for response from CommonSense. This is fine for some small requests, but in general is is better to use asynchronous requests.

I suggest we adapt the library so that users can give a callback for each method. We can call that callback to signal success and failure when the response completes.

mrquincle commented 10 years ago

Done