Prevent timeouts on single page apps
If you have an single page app, or site that is entirely built using AJAX calls, it is possible that a visitor’s connection to Olark could eventually time out. This is because Olark would not be seeing activity from the visitor, such as sent messages or page URL changes.
To prevent that happening, look for this line in your existing Olark embed code:
/* custom configuration goes here (www.olark.com/documentation) */
Immediately below that, paste this line:
This tells Olark to be sympathetic to single page applications and not time out the visitor.
See how else you can configure the chatbox with the Olark API.