Hacker News new | ask | show | jobs
by carsongross 3584 days ago
Perfect. I'll try to get that fixed for the next release. History support won't work, but there is no reason that the rest of the examples shouldn't.
1 comments

Thanks, much appreciated (by me and others who like this simple/easy method to avoid cross-domain tracking on sites we're just browsing and not logging into).

Out of curiosity, what is it about intercooler's history support that requires localStorage? Can't it just use history.pushState? (I assume there's more robust functionality involved, but as I'm not yet familiar with how intercooler works figured I ask).

We snapshot DOM state so that when the user clicks the back button we can dump the old content back in. We stick it into localstorage.

It should be an opt-in feature, but if it is breaking the other examples that's an ugly bug.

Fixed in dev, will be part of 1.0 release:

https://github.com/LeadDyno/intercooler-js/commit/1cd5809126...