I don’t know exactly what you are trying to achieve, but if you just want your popState event handler to start, you can simply extract it from the function, as shown below:
function popStateHandler(event) {
Then you can just call your popStateHandler after push pushate.
Craig Tanaka Nov 21 '18 at 3:54 2018-11-21 03:54
source share