Hi,
We have integrated Desmos into our application, but we are noticing an issue. When Desmos is loaded, it binds multiple event listeners to the document. Even after we are done using Desmos, those event listeners remain active and continue firing, which results in constant CPU spikes.
Is there a recommended way to properly clean up or unbind these events once Desmos is no longer needed? Any workaround or best practice would be greatly appreciated.
Thank you in advance for your support.
Hi, thank you for your response. We are already destroying the instance, but we noticed that the calculator js still binds events to the document. These event listeners remain active even after destroy, which continues to impact performance.
I’ve also shared the specific function that is causing the performance issue for your reference.