We have a scenario where a hidden cross origin iframe receives messages using XMPP over BOSH (Bidirectional-streams Over Synchronous HTTP). Everything worked fine until the Chrome v101 but with v102 there is a delay of more than few seconds between the XMPP publish and the message being received in the iframe. Earlier it used to happen in a few milliseconds (say 20-30) but now it takes around 3000 milliseconds average. This issue is does not happen when we disable the Throttle non-visible cross-origin iframes flag in chrome.
I had known about the requestAnimationFrame and timer events throttling done by chrome but can someone explain what exactly is happening here and if there is a workaround except toggling the chrome flag?