I have sites on multiple orgs which have a visualforce page. On this visualforce page in an
apex:actionFunction with a rerender and an oncomplete.
The idea is to have a spinner on the page until the rerender is finished, and then the oncomplete will remove the spinner.
The problem is that (most times, rarely I'll refresh and it will work) the spinner never goes away. But the weird thing is that it only happens in some orgs. It seems to be related to an error displayed in chrome dev console:
If it does happen to work on a refresh, this error is not printed. It also doesn't display in the orgs where it works.
Out of 4 orgs, in the 2 orgs where this problem happens I've noticed that the instance is AUSxx and the 2 orgs where it works are APxx. (scratchorgs (CSxx) also work fine). So I think this might be related to the issues.
What's causing this issue and how can I fix or workaround it?
head.appendChild(script) which ends up failing. Looking at all the values of script in oldscripts it seems like the number has changed.
src nosessionhref =
oldscripts nosessionhref =
The slightly different numbers appear to be the cause of the issue. but I have no idea where these come from or how to change it (or if it's even the actual cause of the issue).