I thought that's what you were doing.
I use pop/push states with side panel so the browser back/forward buttons execute the last script rather than reload a new page.
I had difficulty with the popstate because it fires on first page load no matter what, and can put things out of sync. This only happens in chrome. I got around it by waiting for the page to fully load before listening for the popstate. Once I did that it seemed to make sense and work as I expected.
I'd rather a better solution though, because the page can be interactive before completely loaded and that can mess with things a little.
11-Dec-2013 01:07:46
- Last edited on
11-Dec-2013 01:09:03
by
Indecent Act