A fix to mitigate UI jerkiness on slower browsers.