latest changes including trick to make chrome wait for animations