优化location.history