Calls to Connect JavaScript API (AP) often never response

Hi,

We recently introduced some metrics to evaluate our usage of Connect JavaScript API and noticed that our calls to AP fail in about 3% of cases.

Let me explain what I mean under ‘fail’. JavaScript API is asynchronous, and we receive results in a callback. We noticed that in 3% of calls to AP, it takes at least 10 seconds (!) to get the result via callback.

Does anybody else experience the same? What could be a fix/workaround here?