history.js
history.js copied to clipboard
What about setInterval checks of the URL?
I was reading A modern Javascript Router and I noticed that he got around all the browser inconsistencies with a single setInterval() to check if the URL had changed.
I started to complain, then realized that might not be a bad idea.
That got me thinking, if this works - do we really need all the work-arounds in history.js? I know history.js has extra features - but wasn't this project started because of the different ways browsers all implement pushStates (or hash fallbacks)?
Am I missing something?