Affecting requestAnimationFrame() in non-visible iframes is now throttled

Published: | Categories: HTML


In order to improve performance and battery life, requestAnimationFrame in <iframe>s that are not visible on the page is now throttled down, as if those are in background tabs. Disqus has had to fix an issue that took much longer to load comments because of hidden iframes with requestAnimationFrame.