fix first page load trigger popstate event on safari
build file