Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page unresponsive when rivescript hits an API that takes some time to respond #301

Open
hark444 opened this issue Jan 29, 2019 · 1 comment

Comments

@hark444
Copy link

hark444 commented Jan 29, 2019

While I'm hitting an API through RiveScript in JavaScript, chrome shows page unresponsive. I have to make the page wait.
Is there a way through which I can send a response like "please wait while we are getting the response", or maybe let the user chat something else till RiveScript gets the response?

@kirsle
Copy link
Member

kirsle commented Jan 31, 2019

What does your code look like? Using normal asynchronous ajax requests or things should work fine. (If you're using a blocking network call, that would block your scripts, but most people don't do that). RiveScript should be able to handle a second reply from a user while waiting on an ajax call for the first user (as long as your custom application code allows for that, anyway -- i.e. if you grey out the "send message" button you'd be limiting it to only one request at a time in the web browser).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants