I need to work with History API for an application. My problem is that some "home" jQuery plugins already implement an event for popstate
it is possible to have more than one popstate event for an unique view ?
window.addEventListener("popstate", console.log);
window.addEventListener("popstate", function(){console.log("I am also called")});
This seems to work fine for me.
Edit: Now with multiple events. For some reason Chrome won't fire twice the console log of the event though
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With