wait for DOM to remove attribute