history.js icon indicating copy to clipboard operation
history.js copied to clipboard

What about setInterval checks of the URL?

Open xeoncross opened this issue 10 years ago • 0 comments

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?

xeoncross avatar Mar 06 '15 02:03 xeoncross