Canvas animation lagging in Firefox but works fine in Chrome
I am working on a Next.js web-app where I create a simple canvas animation for hero section. The animation is working fine in Chrome but lagging in Firefox. The code is very optimized and I am using requestAnimationFrame.