If you are interested, that link I posted above, Nighthawk, actually is a port of Page.js for its dom and pushstate handling wrapping the Express router, so it is just as simple. Here is the bulk of the code taken from page.js:
https://github.com/wesleytodd/intercept-link-clicks/blob/mas...