Don't use global cache on documents anymore. Cache anything that caused a forced synchronous reflow. Prevent multiple requestAnimationFrame calls.