Purecloud webchat duplicate page load

Every site in power.no is sending duplicate request when using the purecloud webchat.

Issue seems to be coming from the following onlineSchedules we send with the initialization config.

Is it possible to fix that so we don't create extra load on the servers?
Blackfriday is coming up, so they want to remove any unnecesarily load from that function.

I'm not sure what duplication you're referring to. The network log in your request is requesting different files for each request.

Asked the developer on the customers side about this.
Got this answer;
"When we send the onlineSchedules with config on the init, something in the minified code calls the page again and loads the whole page as xhr request.

When I removed the onlineSchedules the page did not call itself anymore.
Would be good to find a solution for this, because at the moment we need to manually switch the chat off and on…

Can I see the not minified js code somewhere, so I could maybe come up with the solution for this?"

I sent this link, not sure there are any more about this on the dev pages?
https://developer.mypurecloud.com/api/webchat/schedules.html

The duplicate call seems to be coming inside the
ININ.webchat.create(chatConfig)

So is there some faulty logic there when getting the dates or times?

I've discussed this with the dev team and they've identified some opportunities to improve this code. They're currently working on a fix and hope to deploy it before Friday if testing goes well.

1 Like

This fix is now planned for early next week.

That sound good.
Thanks!

Has the fix here been released?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.